diff --git hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java index 2f63a3f..4c514b1 100644 --- hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java +++ hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java @@ -38,6 +38,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.IntegrationTestingUtility; @@ -149,7 +150,7 @@ public class IntegrationTestBigLinkedList extends Configured implements Tool { private static final String TABLE_NAME_KEY = "IntegrationTestBigLinkedList.table"; - private static final String DEFAULT_TABLE_NAME = "ci"; + private static final String DEFAULT_TABLE_NAME = "IntegrationTestBigLinkedList"; private static byte[] FAMILY_NAME = Bytes.toBytes("meta"); @@ -466,6 +467,8 @@ public class IntegrationTestBigLinkedList extends Configured implements Tool { job.setOutputFormatClass(NullOutputFormat.class); job.getConfiguration().setBoolean("mapred.map.tasks.speculative.execution", false); + TableMapReduceUtil.addDependencyJars(job); + TableMapReduceUtil.initCredentials(job); boolean success = job.waitForCompletion(true); @@ -992,7 +995,7 @@ public class IntegrationTestBigLinkedList extends Configured implements Tool { } public static void main(String[] args) throws Exception { - int ret = ToolRunner.run(new IntegrationTestBigLinkedList(), args); + int ret = ToolRunner.run(HBaseConfiguration.create(), new IntegrationTestBigLinkedList(), args); System.exit(ret); } } \ No newline at end of file diff --git hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java index 21dbdc8..662e433 100644 --- hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java +++ hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java @@ -225,7 +225,7 @@ public class TableMapReduceUtil { initTableMapperJob(table, scan, mapper, outputKeyClass, outputValueClass, job, addDependencyJars, TableInputFormat.class); } - + /** * Use this before submitting a Multi TableMap job. It will appropriately set * up the job. @@ -522,6 +522,8 @@ public class TableMapReduceUtil { // pull necessary dependencies org.apache.zookeeper.ZooKeeper.class, com.google.protobuf.Message.class, + com.google.common.collect.Lists.class, + org.cloudera.htrace.Trace.class, // pull job classes job.getMapOutputKeyClass(), job.getMapOutputValueClass(),