Jelajahi Sumber

AMBARI-20575. JAVA_LIBRARY_PATH in hadoop-env.sh is different on host and downloaded configs (aonishuk)

Andrew Onishuk 8 tahun lalu
induk
melakukan
51b3eed438

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

@@ -36,12 +36,15 @@ from resource_management.libraries.functions.expect import expect
 from resource_management.libraries.functions import StackFeature
 from resource_management.libraries.functions.stack_features import check_stack_feature
 from resource_management.libraries.functions.stack_features import get_stack_feature_version
+from resource_management.libraries.functions.get_architecture import get_architecture
 from ambari_commons.constants import AMBARI_SUDO_BINARY
 
 
 config = Script.get_config()
 tmp_dir = Script.get_tmp_dir()
 
+architecture = get_architecture()
+
 dfs_type = default("/commandParams/dfs_type", "")
 
 artifact_dir = format("{tmp_dir}/AMBARI-artifacts/")