MAPREDUCE-3462. Fix Gridmix JUnit testcase failures. (Ravi Prakash and Ravi Gummadi via amarrk)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1227051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ee3e072b8
commit
4c0bac5670
|
@ -52,6 +52,9 @@ Trunk (unreleased changes)
|
||||||
MAPREDUCE-2944. Improve checking of input for JobClient.displayTasks() (XieXianshan via harsh)
|
MAPREDUCE-2944. Improve checking of input for JobClient.displayTasks() (XieXianshan via harsh)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
MAPREDUCE-3462. Fix Gridmix JUnit testcase failures.
|
||||||
|
(Ravi Prakash and Ravi Gummadi via amarrk)
|
||||||
|
|
||||||
MAPREDUCE-3349. Log rack-name in JobHistory for unsuccessful tasks.
|
MAPREDUCE-3349. Log rack-name in JobHistory for unsuccessful tasks.
|
||||||
(Devaraj K and Amar Kamat via amarrk)
|
(Devaraj K and Amar Kamat via amarrk)
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ public class TestCompressionEmulationUtils {
|
||||||
conf.setInt(RandomTextDataGenerator.GRIDMIX_DATAGEN_RANDOMTEXT_WORDSIZE,
|
conf.setInt(RandomTextDataGenerator.GRIDMIX_DATAGEN_RANDOMTEXT_WORDSIZE,
|
||||||
wordSize);
|
wordSize);
|
||||||
conf.setLong(GenerateData.GRIDMIX_GEN_BYTES, dataSize);
|
conf.setLong(GenerateData.GRIDMIX_GEN_BYTES, dataSize);
|
||||||
|
conf.set("mapreduce.job.hdfs-servers", "");
|
||||||
|
|
||||||
FileSystem lfs = FileSystem.getLocal(conf);
|
FileSystem lfs = FileSystem.getLocal(conf);
|
||||||
|
|
||||||
|
@ -192,6 +193,7 @@ public class TestCompressionEmulationUtils {
|
||||||
CompressionEmulationUtil.setInputCompressionEmulationEnabled(conf, true);
|
CompressionEmulationUtil.setInputCompressionEmulationEnabled(conf, true);
|
||||||
|
|
||||||
conf.setLong(GenerateData.GRIDMIX_GEN_BYTES, dataSize);
|
conf.setLong(GenerateData.GRIDMIX_GEN_BYTES, dataSize);
|
||||||
|
conf.set("mapreduce.job.hdfs-servers", "");
|
||||||
|
|
||||||
float expectedRatio = CompressionEmulationUtil.DEFAULT_COMPRESSION_RATIO;
|
float expectedRatio = CompressionEmulationUtil.DEFAULT_COMPRESSION_RATIO;
|
||||||
if (ratio > 0) {
|
if (ratio > 0) {
|
||||||
|
|
|
@ -141,6 +141,7 @@ public class TestDistCacheEmulation {
|
||||||
boolean useOldProperties) throws IOException {
|
boolean useOldProperties) throws IOException {
|
||||||
String user = UserGroupInformation.getCurrentUser().getShortUserName();
|
String user = UserGroupInformation.getCurrentUser().getShortUserName();
|
||||||
conf.set(MRJobConfig.USER_NAME, user);
|
conf.set(MRJobConfig.USER_NAME, user);
|
||||||
|
conf.set("mapreduce.job.hdfs-servers", "");
|
||||||
// Set some dummy dist cache files in gridmix configuration so that they go
|
// Set some dummy dist cache files in gridmix configuration so that they go
|
||||||
// into the configuration of JobStory objects.
|
// into the configuration of JobStory objects.
|
||||||
String[] distCacheFiles = {"hdfs:///tmp/file1.txt",
|
String[] distCacheFiles = {"hdfs:///tmp/file1.txt",
|
||||||
|
|
|
@ -521,6 +521,7 @@ public class TestGridmixSubmission {
|
||||||
DebugGridmix client = new DebugGridmix();
|
DebugGridmix client = new DebugGridmix();
|
||||||
conf = new Configuration();
|
conf = new Configuration();
|
||||||
conf.setEnum(GridmixJobSubmissionPolicy.JOB_SUBMISSION_POLICY,policy);
|
conf.setEnum(GridmixJobSubmissionPolicy.JOB_SUBMISSION_POLICY,policy);
|
||||||
|
conf.set("mapreduce.job.hdfs-servers", "");
|
||||||
if (useDefaultQueue) {
|
if (useDefaultQueue) {
|
||||||
conf.setBoolean(GridmixJob.GRIDMIX_USE_QUEUE_IN_TRACE, false);
|
conf.setBoolean(GridmixJob.GRIDMIX_USE_QUEUE_IN_TRACE, false);
|
||||||
conf.set(GridmixJob.GRIDMIX_DEFAULT_QUEUE, "q1");
|
conf.set(GridmixJob.GRIDMIX_DEFAULT_QUEUE, "q1");
|
||||||
|
|
|
@ -205,6 +205,7 @@ public class TestSleepJob {
|
||||||
throws Exception {
|
throws Exception {
|
||||||
Configuration conf = new Configuration();
|
Configuration conf = new Configuration();
|
||||||
conf.setBoolean(SleepJob.SLEEPJOB_MAPTASK_ONLY, true);
|
conf.setBoolean(SleepJob.SLEEPJOB_MAPTASK_ONLY, true);
|
||||||
|
conf.set("mapreduce.job.hdfs-servers", "");
|
||||||
DebugJobProducer jobProducer = new DebugJobProducer(5, conf);
|
DebugJobProducer jobProducer = new DebugJobProducer(5, conf);
|
||||||
JobConf jconf = GridmixTestUtils.mrCluster.createJobConf(new JobConf(conf));
|
JobConf jconf = GridmixTestUtils.mrCluster.createJobConf(new JobConf(conf));
|
||||||
UserGroupInformation ugi = UserGroupInformation.getLoginUser();
|
UserGroupInformation ugi = UserGroupInformation.getLoginUser();
|
||||||
|
@ -253,6 +254,7 @@ public class TestSleepJob {
|
||||||
DebugGridmix client = new DebugGridmix();
|
DebugGridmix client = new DebugGridmix();
|
||||||
conf = new Configuration();
|
conf = new Configuration();
|
||||||
conf.setEnum(GridmixJobSubmissionPolicy.JOB_SUBMISSION_POLICY, policy);
|
conf.setEnum(GridmixJobSubmissionPolicy.JOB_SUBMISSION_POLICY, policy);
|
||||||
|
conf.set("mapreduce.job.hdfs-servers", "");
|
||||||
conf = GridmixTestUtils.mrCluster.createJobConf(new JobConf(conf));
|
conf = GridmixTestUtils.mrCluster.createJobConf(new JobConf(conf));
|
||||||
// allow synthetic users to create home directories
|
// allow synthetic users to create home directories
|
||||||
GridmixTestUtils.dfs.mkdirs(root, new FsPermission((short) 0777));
|
GridmixTestUtils.dfs.mkdirs(root, new FsPermission((short) 0777));
|
||||||
|
|
Loading…
Reference in New Issue