HBASE-3578 TableInputFormat does not setup the configuration for HBase mapreduce jobs correctly
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1075441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d53036b8d
commit
8607a22a7b
|
@ -54,6 +54,8 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-3566 writeToWAL is not serialized for increment operation
|
||||
HBASE-3552 Coprocessors are unable to load if RegionServer is launched
|
||||
using a different classloader than system default
|
||||
HBASE-3578 TableInputFormat does not setup the configuration for HBase
|
||||
mapreduce jobs correctly (Dan Harvey via Stack)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||
|
@ -84,7 +86,7 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-3563 [site] Add one-page-only version of hbase doc
|
||||
HBASE-3564 DemoClient.pl - a demo client in Perl
|
||||
HBASE-3560 the hbase-default entry of "hbase.defaults.for.version"
|
||||
causes tests not to run via not-maven
|
||||
causes tests not to run via not-maven
|
||||
|
||||
|
||||
NEW FEATURES
|
||||
|
|
|
@ -100,6 +100,7 @@ public class TableMapReduceUtil {
|
|||
if (outputValueClass != null) job.setMapOutputValueClass(outputValueClass);
|
||||
if (outputKeyClass != null) job.setMapOutputKeyClass(outputKeyClass);
|
||||
job.setMapperClass(mapper);
|
||||
HBaseConfiguration.addHbaseResources(job.getConfiguration());
|
||||
job.getConfiguration().set(TableInputFormat.INPUT_TABLE, table);
|
||||
job.getConfiguration().set(TableInputFormat.SCAN,
|
||||
convertScanToString(scan));
|
||||
|
@ -231,6 +232,7 @@ public class TableMapReduceUtil {
|
|||
String serverImpl, boolean addDependencyJars) throws IOException {
|
||||
|
||||
Configuration conf = job.getConfiguration();
|
||||
HBaseConfiguration.addHbaseResources(conf);
|
||||
job.setOutputFormatClass(TableOutputFormat.class);
|
||||
if (reducer != null) job.setReducerClass(reducer);
|
||||
conf.set(TableOutputFormat.OUTPUT_TABLE, table);
|
||||
|
|
Loading…
Reference in New Issue