Skip to content

Commit aa5b15b

Browse files
committed
MAPREDUCE-6413. TestLocalJobSubmission is failing with unknown host. Contributed by zhihai xu
1 parent 67a62da commit aa5b15b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hadoop-mapreduce-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ Release 2.8.0 - UNRELEASED
509509
too early (Brahma Reddy Battula, Akira AJISAKA, and Gera Shegalov via
510510
jlowe)
511511

512+
MAPREDUCE-6413. TestLocalJobSubmission is failing with unknown host
513+
(zhihai xu via jlowe)
514+
512515
Release 2.7.1 - UNRELEASED
513516

514517
INCOMPATIBLE CHANGES

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/TestLocalJobSubmission.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.apache.hadoop.fs.FileSystem;
3030
import org.apache.hadoop.fs.Path;
3131

32+
import org.apache.hadoop.mapreduce.MRConfig;
3233
import org.apache.hadoop.mapreduce.SleepJob;
3334
import org.apache.hadoop.util.ToolRunner;
3435
import org.junit.After;
@@ -63,7 +64,8 @@ public void testLocalJobLibjarsOption() throws IOException {
6364
Path jarPath = makeJar(new Path(TEST_ROOT_DIR, "test.jar"));
6465

6566
Configuration conf = new Configuration();
66-
conf.set(FileSystem.FS_DEFAULT_NAME_KEY, "hdfs://testcluster");
67+
conf.set(FileSystem.FS_DEFAULT_NAME_KEY, "hdfs://localhost:9000");
68+
conf.set(MRConfig.FRAMEWORK_NAME, "local");
6769
final String[] args = {
6870
"-jt" , "local", "-libjars", jarPath.toString(),
6971
"-m", "1", "-r", "1", "-mt", "1", "-rt", "1"

0 commit comments

Comments
 (0)