AMBARI-21011. Append PATH to YARN config 'yarn.nodemanager.admin-env' for HDP 
2.6.


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

Branch: refs/heads/branch-feature-AMBARI-20859
Commit: 6e4331e92f6b42fab3d36ea64df42019ae73e715
Parents: ec6e940
Author: Swapan Shridhar <[email protected]>
Authored: Fri May 12 19:27:52 2017 -0700
Committer: Swapan Shridhar <[email protected]>
Committed: Fri May 12 19:27:52 2017 -0700

----------------------------------------------------------------------
 .../HDP/2.6/services/YARN/configuration/yarn-site.xml       | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6e4331e9/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml
 
b/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml
index c434c12..6aa0bae 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml
@@ -101,4 +101,13 @@
     </depends-on>
     <on-ambari-upgrade add="false"/>
   </property>
+  <property>
+    <name>yarn.nodemanager.admin-env</name>
+    
<value>MALLOC_ARENA_MAX=$MALLOC_ARENA_MAX,PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$PATH</value>
+    <description>
+      Environment variables that should be forwarded from the NodeManager's
+      environment to the container's.
+    </description>
+    <on-ambari-upgrade add="false"/>
+  </property>
 </configuration>

Reply via email to