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

This commit is contained in:
Rajeshbabu Chintaguntla 2015-06-24 01:11:49 +05:30
parent 5a24d16f4c
commit be5c1c7a21
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);