You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2014/01/16 22:04:19 UTC

git commit: AMBARI-4305. Agent should ensure that the path for mapred.hosts and mapred.hosts.exclude is present (Dmytro Shkvyra via dlysnichenko)

Updated Branches:
  refs/heads/trunk 8f087a7d5 -> ca4147f89


AMBARI-4305. Agent should ensure that the path for mapred.hosts and mapred.hosts.exclude is present (Dmytro Shkvyra via dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ca4147f8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ca4147f8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ca4147f8

Branch: refs/heads/trunk
Commit: ca4147f8973e7c1567d1e2fc4b4741f1280680b0
Parents: 8f087a7
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Thu Jan 16 23:02:55 2014 +0200
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Thu Jan 16 23:02:55 2014 +0200

----------------------------------------------------------------------
 .../1.3.4/services/MAPREDUCE/package/scripts/mapreduce.py | 10 ++++++++++
 .../1.3.4/services/MAPREDUCE/package/scripts/params.py    |  3 ++-
 2 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ca4147f8/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/mapreduce.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/mapreduce.py b/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/mapreduce.py
index 41e2af1..c5fd002 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/mapreduce.py
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/mapreduce.py
@@ -38,3 +38,13 @@ def mapreduce():
             mode=0755,
             recursive=True
   )
+
+  File(params.exclude_file_path,
+            owner=params.mapred_user,
+            group=params.user_group,
+  )
+
+  File(params.mapred_hosts_file_path,
+            owner=params.mapred_user,
+            group=params.user_group,
+  )
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/ca4147f8/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/params.py b/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/params.py
index 55f4303..7be5a7c 100644
--- a/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/params.py
+++ b/ambari-server/src/main/resources/stacks/HDP/1.3.4/services/MAPREDUCE/package/scripts/params.py
@@ -50,4 +50,5 @@ kinit_path_local = get_kinit_path([default("kinit_path_local",None), "/usr/bin",
 
 #exclude file
 mr_exclude_hosts = default("/clusterHostInfo/decom_tt_hosts", [])
-exclude_file_path = config['configurations']['mapred-site']['mapred.hosts.exclude']
\ No newline at end of file
+exclude_file_path = config['configurations']['mapred-site']['mapred.hosts.exclude']
+mapred_hosts_file_path = config['configurations']['mapred-site']['mapred.hosts']
\ No newline at end of file