You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2016/09/12 18:10:03 UTC
ambari git commit: Revert "AMBARI-18237. Certain configuration files
cannot be modified through Ambari api. (aonishuk)"
Repository: ambari
Updated Branches:
refs/heads/branch-2.5 f50c22960 -> 44e64e5f6
Revert "AMBARI-18237. Certain configuration files cannot be modified through Ambari api. (aonishuk)"
This reverts commit 80a6b01415cba7f011be1551ea24bef7cbfe393c.
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/44e64e5f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/44e64e5f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/44e64e5f
Branch: refs/heads/branch-2.5
Commit: 44e64e5f675057da08a7e0d3a1fddd229a4707f5
Parents: f50c229
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Mon Sep 12 21:09:26 2016 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Sep 12 21:09:55 2016 +0300
----------------------------------------------------------------------
.../stacks/HDP/2.0.6/hooks/before-START/scripts/params.py | 3 +--
.../HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/44e64e5f/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
index 63d4fc7..fc2c61f 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
@@ -40,12 +40,11 @@ stack_version_formatted = format_stack_version(stack_version_unformatted)
dfs_type = default("/commandParams/dfs_type", "")
hadoop_conf_dir = "/etc/hadoop/conf"
+
component_list = default("/localComponents", [])
hdfs_tmp_dir = config['configurations']['hadoop-env']['hdfs_tmp_dir']
-hadoop_metrics2_properties_content = config['configurations']['hadoop-metrics2.properties']['content']
-
# hadoop default params
mapreduce_libs_path = "/usr/lib/hadoop-mapreduce/*"
http://git-wip-us.apache.org/repos/asf/ambari/blob/44e64e5f/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
index ff52b31..ba9c8fb 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py
@@ -101,7 +101,7 @@ def setup_hadoop():
File(os.path.join(params.hadoop_conf_dir, "hadoop-metrics2.properties"),
owner=params.hdfs_user,
group=params.user_group,
- content=InlineTemplate(params.hadoop_metrics2_properties_content)
+ content=Template("hadoop-metrics2.properties.j2")
)
if params.dfs_type == 'HCFS' and params.has_core_site and 'ECS_CLIENT' in params.component_list: