Browse Source

AMBARI-4547. DataNode start failed after enabling security (aonishuk)

Andrew Onischuk 11 năm trước cách đây
mục cha
commit
a68dd4b1a8

+ 5 - 3
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py

@@ -124,10 +124,12 @@ else:
 
 #hadoop-env.sh
 java_home = config['hostLevelParams']['java_home']
-if System.get_instance().os_family == "suse":
-  jsvc_path = "/usr/lib/bigtop-utils"
-else:
+
+if config['hostLevelParams']['stack_version'] == '2.0.6' and System.get_instance().os_family != "suse":
+  # deprecated rhel jsvc_path
   jsvc_path = "/usr/libexec/bigtop-utils"
+else:
+  jsvc_path = "/usr/lib/bigtop-utils"
 
 hadoop_heapsize = config['configurations']['global']['hadoop_heapsize']
 namenode_heapsize = config['configurations']['global']['namenode_heapsize']