Ver Fonte

YARN-82. Change the default local and log dirs to be based on hadoop.tmp.dir and yarn.log.dir. (Contributed by Hemanth Yamijala)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1388339 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Seth há 13 anos atrás
pai
commit
f4c336d547

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -13,6 +13,9 @@ Trunk - Unreleased
     YARN-57. Allow process-tree based resource calculation et al. to be
     YARN-57. Allow process-tree based resource calculation et al. to be
     pluggable to support it on multiple platforms. (Radim Kolar via acmurthy)
     pluggable to support it on multiple platforms. (Radim Kolar via acmurthy)
 
 
+    YARN-82. Change the default local and log dirs to be based on
+    hadoop.tmp.dir and yarn.log.dir. (Hemanth Yamijala via sseth)
+
   OPTIMAZATIONS
   OPTIMAZATIONS
 
 
   BUG FIXES
   BUG FIXES

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml

@@ -328,7 +328,7 @@
       be subdirectories of this.
       be subdirectories of this.
    </description>
    </description>
     <name>yarn.nodemanager.local-dirs</name>
     <name>yarn.nodemanager.local-dirs</name>
-    <value>/tmp/nm-local-dir</value>
+    <value>${hadoop.tmp.dir}/nm-local-dir</value>
   </property>
   </property>
 
 
   <property>
   <property>
@@ -370,7 +370,7 @@
       stderr, stdin, and syslog generated by that container.
       stderr, stdin, and syslog generated by that container.
     </description>
     </description>
     <name>yarn.nodemanager.log-dirs</name>
     <name>yarn.nodemanager.log-dirs</name>
-    <value>/tmp/logs</value>
+    <value>${yarn.log.dir}/userlogs</value>
   </property>
   </property>
 
 
   <property>
   <property>