Details
Description
It looks like TestImportTsv can be fixed once HBASE-8453 is applied with this additional delta:
diff --git a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java b/src/test/java/org/ index 77d044b..0da6f0a 100644 --- a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java +++ b/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java @@ -26,6 +26,7 @@ import java.util.ArrayList; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hbase.*; +import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.Path; @@ -289,7 +290,10 @@ public class TestImportTsv { LOG.info("set the hbaseAdmin"); ImportTsv.createHbaseAdmin(conf); } - Job job = ImportTsv.createSubmittableJob(conf, args); + + JobConf jobConf = htu1.getMRCluster().createJobConf(); + HBaseConfiguration.merge(jobConf, conf); + Job job = ImportTsv.createSubmittableJob(jobConf, args); job.waitForCompletion(false); assertTrue(job.isSuccessful());
Tested with Hadoop 2.0.4 + HBase 0.94.7.