MAPREDUCE-6413. TestLocalJobSubmission is failing with unknown host. Contributed by zhihai xu

(cherry picked from commit aa5b15b03b)
This commit is contained in:
Jason Lowe 2015-06-25 19:50:07 +00:00
parent 05e9ffdd62
commit 31fd7a51d8
2 changed files with 6 additions and 1 deletions

View File

@ -245,6 +245,9 @@ Release 2.8.0 - UNRELEASED
too early (Brahma Reddy Battula, Akira AJISAKA, and Gera Shegalov via too early (Brahma Reddy Battula, Akira AJISAKA, and Gera Shegalov via
jlowe) jlowe)
MAPREDUCE-6413. TestLocalJobSubmission is failing with unknown host
(zhihai xu via jlowe)
Release 2.7.1 - UNRELEASED Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -29,6 +29,7 @@
import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapreduce.MRConfig;
import org.apache.hadoop.mapreduce.SleepJob; import org.apache.hadoop.mapreduce.SleepJob;
import org.apache.hadoop.util.ToolRunner; import org.apache.hadoop.util.ToolRunner;
import org.junit.After; import org.junit.After;
@ -63,7 +64,8 @@ public void testLocalJobLibjarsOption() throws IOException {
Path jarPath = makeJar(new Path(TEST_ROOT_DIR, "test.jar")); Path jarPath = makeJar(new Path(TEST_ROOT_DIR, "test.jar"));
Configuration conf = new Configuration(); Configuration conf = new Configuration();
conf.set(FileSystem.FS_DEFAULT_NAME_KEY, "hdfs://testcluster"); conf.set(FileSystem.FS_DEFAULT_NAME_KEY, "hdfs://localhost:9000");
conf.set(MRConfig.FRAMEWORK_NAME, "local");
final String[] args = { final String[] args = {
"-jt" , "local", "-libjars", jarPath.toString(), "-jt" , "local", "-libjars", jarPath.toString(),
"-m", "1", "-r", "1", "-mt", "1", "-rt", "1" "-m", "1", "-r", "1", "-mt", "1", "-rt", "1"