HBASE-11049 HBase WALPlayer needs to add credentials to job to play to table (Jerry He)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1589886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dcd070dc0e
commit
1021af6aef
|
@ -256,6 +256,7 @@ public class WALPlayer extends Configured implements Tool {
|
||||||
job.setMapperClass(HLogMapper.class);
|
job.setMapperClass(HLogMapper.class);
|
||||||
job.setOutputFormatClass(MultiTableOutputFormat.class);
|
job.setOutputFormatClass(MultiTableOutputFormat.class);
|
||||||
TableMapReduceUtil.addDependencyJars(job);
|
TableMapReduceUtil.addDependencyJars(job);
|
||||||
|
TableMapReduceUtil.initCredentials(job);
|
||||||
// No reducers.
|
// No reducers.
|
||||||
job.setNumReduceTasks(0);
|
job.setNumReduceTasks(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue