YARN-1751. Improve MiniYarnCluster for log aggregation testing. Contributed by Ming Ma

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1594275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason Darrell Lowe 2014-05-13 16:43:59 +00:00
parent e4ee1d111b
commit 95ba9f47fc
2 changed files with 3 additions and 6 deletions

View File

@ -76,6 +76,9 @@ Release 2.5.0 - UNRELEASED
YARN-1987. Wrapper for leveldb DBIterator to aid in handling database exceptions.
(Jason Lowe via kasha)
YARN-1751. Improve MiniYarnCluster for log aggregation testing (Ming Ma
via jlowe)
OPTIMIZATIONS
BUG FIXES

View File

@ -504,12 +504,6 @@ public class MiniYARNCluster extends CompositeService {
String logDirsString = prepareDirs("log", numLogDirs);
config.set(YarnConfiguration.NM_LOG_DIRS, logDirsString);
File remoteLogDir =
new File(testWorkDir, MiniYARNCluster.this.getName()
+ "-remoteLogDir-nm-" + index);
remoteLogDir.mkdir();
config.set(YarnConfiguration.NM_REMOTE_APP_LOG_DIR,
remoteLogDir.getAbsolutePath());
// By default AM + 2 containers
config.setInt(YarnConfiguration.NM_PMEM_MB, 4*1024);
config.set(YarnConfiguration.NM_ADDRESS,