|
@@ -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']
|