浏览代码

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

Andrew Onishuk 8 年之前
父节点
当前提交
51b3eed438
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py

+ 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/")