ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject [1/2] ambari git commit: AMBARI-17859. YARN service check failed during EU from HDP-2.4.0.0 to Erie (dlysnichenko)
Date Tue, 26 Jul 2016 16:10:26 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 de78fb449 -> 8dcc37e9e
  refs/heads/trunk 0fb788580 -> 33c10efe4


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/33c10efe
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/33c10efe
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/33c10efe

Branch: refs/heads/trunk
Commit: 33c10efe45ec3488a804c7fb46170afad325cc46
Parents: 0fb7885
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Tue Jul 26 19:09:03 2016 +0300
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Tue Jul 26 19:09:03 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/33c10efe/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 8d791d3..ab41323 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"


Mime
View raw message