From f4c336d547bb6cbff1454fc239ad0827965c2fac Mon Sep 17 00:00:00 2001 From: Siddharth Seth Date: Fri, 21 Sep 2012 06:28:47 +0000 Subject: [PATCH] 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 --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../hadoop-yarn-common/src/main/resources/yarn-default.xml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index cf88578679..6eb62739f2 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -13,6 +13,9 @@ Trunk - Unreleased YARN-57. Allow process-tree based resource calculation et al. to be 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 BUG FIXES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml index d2531150f2..1d0873bfa4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml @@ -328,7 +328,7 @@ be subdirectories of this. yarn.nodemanager.local-dirs - /tmp/nm-local-dir + ${hadoop.tmp.dir}/nm-local-dir @@ -370,7 +370,7 @@ stderr, stdin, and syslog generated by that container. yarn.nodemanager.log-dirs - /tmp/logs + ${yarn.log.dir}/userlogs