Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchenyu001 committed Sep 19, 2023
1 parent c16484f commit e23ae03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testCommandLine() throws Exception {
" -Xmx820m -Djava.io.tmpdir=" + MRApps.crossPlatformify("PWD") + "/tmp" +
" -Dlog4j.configuration=container-log4j.properties" +
" -Dyarn.app.container.log.dir=<LOG_DIR>" +
" -Dyarn.app.container.log.filesize=0" +
" -Dyarn.app.container.log.filesize=10240" +
" -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog" +
" org.apache.hadoop.mapred.YarnChild 127.0.0.1" +
" 54321" +
Expand Down Expand Up @@ -127,7 +127,7 @@ private void testReduceCommandLine(Configuration conf)
" -Xmx820m <ADD_OPENS> -Djava.io.tmpdir=" + MRApps.crossPlatformify("PWD") + "/tmp" +
" -Dlog4j.configuration=container-log4j.properties" +
" -Dyarn.app.container.log.dir=<LOG_DIR>" +
" -Dyarn.app.container.log.filesize=0" +
" -Dyarn.app.container.log.filesize=10240" +
" -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog" +
" -Dyarn.app.mapreduce.shuffle.logger=INFO," + appenderName +
" -Dyarn.app.mapreduce.shuffle.logfile=syslog.shuffle" +
Expand Down Expand Up @@ -169,7 +169,7 @@ public void testCommandLineWithLog4JConifg() throws Exception {
" -Xmx820m <ADD_OPENS> -Djava.io.tmpdir=" + MRApps.crossPlatformify("PWD") + "/tmp" +
" -Dlog4j.configuration=" + testLogPropertieFile +
" -Dyarn.app.container.log.dir=<LOG_DIR>" +
" -Dyarn.app.container.log.filesize=0" +
" -Dyarn.app.container.log.filesize=10240" +
" -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog" +
" org.apache.hadoop.mapred.YarnChild 127.0.0.1" +
" 54321" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void testStartLocalizer() throws IOException {
String.format("-Dyarn.app.container.log.dir=%s/application_0/12345",
mockExec.getConf().get(YarnConfiguration.NM_LOG_DIRS)));
assertThat(result.get(15)).isEqualTo(
"-Dyarn.app.container.log.filesize=0");
"-Dyarn.app.container.log.filesize=10240");
assertThat(result.get(16)).isEqualTo("-Dhadoop.root.logger=INFO,CLA");
assertThat(result.get(17)).isEqualTo(
"-Dhadoop.root.logfile=container-localizer-syslog");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ private void verifyTailErrorLogOnContainerExit(Configuration conf,
invalidCommand.add("-Djava.io.tmpdir=$PWD/tmp");
invalidCommand.add("-Dlog4j.configuration=container-log4j.properties");
invalidCommand.add("-Dyarn.app.container.log.dir=" + containerLogDir);
invalidCommand.add("-Dyarn.app.container.log.filesize=0");
invalidCommand.add("-Dyarn.app.container.log.filesize=10240");
invalidCommand.add("-Dhadoop.root.logger=INFO,CLA");
invalidCommand.add("-Dhadoop.root.logfile=syslog");
invalidCommand.add("-Xmx1024m");
Expand Down

0 comments on commit e23ae03

Please sign in to comment.