HBASE-13940 IntegrationTestBulkLoad needs option to specify output folders used by test(Rajeshbabu)

This commit is contained in:
Rajeshbabu Chintaguntla 2015-06-24 01:06:55 +05:30
parent 3e72dc9f08
commit 168c1b1b73
1 changed files with 6 additions and 1 deletions

View File

@ -253,7 +253,12 @@ public class IntegrationTestBulkLoad extends IntegrationTestBase {
String jobName = IntegrationTestBulkLoad.class.getSimpleName() + " - " +
EnvironmentEdgeManager.currentTime();
Configuration conf = new Configuration(util.getConfiguration());
Path p = util.getDataTestDirOnTestFS(getTablename() + "-" + iteration);
Path p = null;
if (conf.get(ImportTsv.BULK_OUTPUT_CONF_KEY) == null) {
p = util.getDataTestDirOnTestFS(getTablename() + "-" + iteration);
} else {
p = new Path(conf.get(ImportTsv.BULK_OUTPUT_CONF_KEY));
}
conf.setBoolean("mapreduce.map.speculative", false);
conf.setBoolean("mapreduce.reduce.speculative", false);