You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2016/07/26 16:10:27 UTC
[2/2] ambari git commit: AMBARI-17859. YARN service check failed
during EU from HDP-2.4.0.0 to Erie (dlysnichenko)
AMBARI-17859. YARN service check failed during EU from HDP-2.4.0.0 to Erie (dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8dcc37e9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8dcc37e9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8dcc37e9
Branch: refs/heads/branch-2.4
Commit: 8dcc37e9edd57fa23334e0c0144e32a2bc825040
Parents: de78fb4
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Tue Jul 26 19:09:03 2016 +0300
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Tue Jul 26 19:09:55 2016 +0300
----------------------------------------------------------------------
.../main/resources/stacks/HDP/2.2/services/stack_advisor.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/8dcc37e9/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
index 862aab7..9d16c8a 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
@@ -104,11 +104,10 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
putYarnPropertyAttribute('yarn.scheduler.maximum-allocation-vcores', 'maximum', services["configurations"]["yarn-site"]["properties"]["yarn.nodemanager.resource.cpu-vcores"])
putYarnPropertyAttribute('yarn.scheduler.minimum-allocation-vcores', 'maximum', services["configurations"]["yarn-site"]["properties"]["yarn.nodemanager.resource.cpu-vcores"])
- kerberos_authentication_enabled = False
- if "core-site" in services["configurations"] and "hadoop.security.authentication" in services["configurations"]["core-site"]["properties"]:
- if services["configurations"]["core-site"]["properties"]["hadoop.security.authentication"].lower() == "kerberos" :
- kerberos_authentication_enabled = True
- putYarnProperty('yarn.nodemanager.container-executor.class', 'org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor')
+ kerberos_authentication_enabled = self.isSecurityEnabled(services)
+ if kerberos_authentication_enabled:
+ putYarnProperty('yarn.nodemanager.container-executor.class',
+ 'org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor')
if "yarn-env" in services["configurations"] and "yarn_cgroups_enabled" in services["configurations"]["yarn-env"]["properties"]:
yarn_cgroups_enabled = services["configurations"]["yarn-env"]["properties"]["yarn_cgroups_enabled"].lower() == "true"