You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/16 16:45:00 UTC
[jira] [Resolved] (HBASE-8202) MultiTableOutputFormat should support writing to another HBase cluster
[ https://issues.apache.org/jira/browse/HBASE-8202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell resolved HBASE-8202.
----------------------------------------
Assignee: (was: Ted Yu)
Resolution: Won't Fix
> MultiTableOutputFormat should support writing to another HBase cluster
> ----------------------------------------------------------------------
>
> Key: HBASE-8202
> URL: https://issues.apache.org/jira/browse/HBASE-8202
> Project: HBase
> Issue Type: Improvement
> Components: mapreduce
> Reporter: Ted Yu
> Priority: Major
> Attachments: 8202-v1.txt
>
>
> This was brought up by David Koch in thread 'hbase.mapred.output.quorum ignored in Mapper job with HDFS source and HBase sink' where he wanted to import a file on HDFS from one cluster A (source) into HBase
> tables on a different cluster B (destination) using a Mapper job with an
> HBase sink.
> Here is my analysis:
> MultiTableOutputFormat doesn't extend TableOutputFormat:
> {code}
> public class MultiTableOutputFormat extends OutputFormat<ImmutableBytesWritable, Mutation> {
> {code}
> Relevant configuration w.r.t. output quorum is setup in TableOutputFormat#setConf():
> {code}
> public void setConf(Configuration otherConf) {
> this.conf = HBaseConfiguration.create(otherConf);
> String tableName = this.conf.get(OUTPUT_TABLE);
> if(tableName == null || tableName.length() <= 0) {
> throw new IllegalArgumentException("Must specify table name");
> }
> String address = this.conf.get(QUORUM_ADDRESS);
> int zkClientPort = conf.getInt(QUORUM_PORT, 0);
> String serverClass = this.conf.get(REGION_SERVER_CLASS);
> String serverImpl = this.conf.get(REGION_SERVER_IMPL);
> try {
> if (address != null) {
> ZKUtil.applyClusterKeyToConf(this.conf, address);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)