HBASE-1871 Wrong type used in TableMapReduceUtil.initTableReduceJob()

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@819216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-09-26 21:23:19 +00:00
parent 94b7aaee90
commit 128bca90d9
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,8 @@ Release 0.21.0 - Unreleased
(Keith Thomas via Stack) (Keith Thomas via Stack)
HBASE-1858 Master can't split logs created by THBase (Clint Morgan via HBASE-1858 Master can't split logs created by THBase (Clint Morgan via
Andrew Purtell) Andrew Purtell)
HBASE-1871 Wrong type used in TableMapReduceUtil.initTableReduceJob()
(Lars George via Stack)
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -27,7 +27,6 @@ import java.io.IOException;
import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import org.apache.hadoop.hbase.util.Base64; import org.apache.hadoop.hbase.util.Base64;
@ -128,7 +127,7 @@ public class TableMapReduceUtil {
if (reducer != null) job.setReducerClass(reducer); if (reducer != null) job.setReducerClass(reducer);
job.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, table); job.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, table);
job.setOutputKeyClass(ImmutableBytesWritable.class); job.setOutputKeyClass(ImmutableBytesWritable.class);
job.setOutputValueClass(Put.class); job.setOutputValueClass(Writable.class);
if (partitioner == HRegionPartitioner.class) { if (partitioner == HRegionPartitioner.class) {
job.setPartitionerClass(HRegionPartitioner.class); job.setPartitionerClass(HRegionPartitioner.class);
HTable outputTable = new HTable(new HBaseConfiguration( HTable outputTable = new HTable(new HBaseConfiguration(