HBASE-4398 If HRegionPartitioner is used in MapReduce, client side configurations are overwritten by hbase-site.xml
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1307116 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbfe3f29e5
commit
89ea8af04f
|
@ -120,9 +120,8 @@ implements Configurable {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setConf(Configuration configuration) {
|
public void setConf(Configuration configuration) {
|
||||||
this.conf = configuration;
|
this.conf = HBaseConfiguration.create(configuration);
|
||||||
try {
|
try {
|
||||||
HBaseConfiguration.addHbaseResources(conf);
|
|
||||||
this.table = new HTable(this.conf,
|
this.table = new HTable(this.conf,
|
||||||
configuration.get(TableOutputFormat.OUTPUT_TABLE));
|
configuration.get(TableOutputFormat.OUTPUT_TABLE));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue