You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Guangxu Cheng (JIRA)" <ji...@apache.org> on 2018/09/02 08:32:00 UTC

[jira] [Commented] (HBASE-21001) ReplicationObserver fails to load in HBase 2.0.0

    [ https://issues.apache.org/jira/browse/HBASE-21001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601140#comment-16601140 ] 

Guangxu Cheng commented on HBASE-21001:
---------------------------------------

{code:title=HRegionServer.java|borderStyle=solid}
  static void decorateRegionServerConfiguration(Configuration conf) {
    if (ReplicationUtils.isReplicationForBulkLoadDataEnabled(conf)) {
      String plugins = conf.get(CoprocessorHost.REGIONSERVER_COPROCESSOR_CONF_KEY, "");
      String rsCoprocessorClass = ReplicationObserver.class.getCanonicalName();
      if (!plugins.contains(rsCoprocessorClass)) {
        conf.set(CoprocessorHost.REGIONSERVER_COPROCESSOR_CONF_KEY,
          plugins + "," + rsCoprocessorClass);
      }
    }
  }
{code}
ReplicationObserver is a region-level coprocessor, we should not add it to "hbase.coprocessor.regionserver.classes".

> ReplicationObserver fails to load in HBase 2.0.0
> ------------------------------------------------
>
>                 Key: HBASE-21001
>                 URL: https://issues.apache.org/jira/browse/HBASE-21001
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Wei-Chiu Chuang
>            Priority: Major
>
> ReplicationObserver was added in HBASE-17290 to prevent "Potential loss of data for replication of bulk loaded hfiles".
> I tried to enable bulk loading replication feature (hbase.replication.bulkload.enabled=true and configure hbase.replication.cluster.id) on a HBase 2.0.0 cluster, but the RegionServer started with the following error:
> {quote}
> 2018-08-02 18:20:36,365 INFO org.apache.hadoop.hbase.regionserver.RegionServerCoprocessorHost: System coprocessor loading is enabled
> 2018-08-02 18:20:36,365 INFO org.apache.hadoop.hbase.regionserver.RegionServerCoprocessorHost: Table coprocessor loading is enabled
> 2018-08-02 18:20:36,365 ERROR org.apache.hadoop.hbase.regionserver.RegionServerCoprocessorHost: org.apache.hadoop.hbase.replication.regionserver.ReplicationObserver is not of type
> RegionServerCoprocessor. Check the configuration of hbase.coprocessor.regionserver.classes
> 2018-08-02 18:20:36,366 ERROR org.apache.hadoop.hbase.coprocessor.CoprocessorHost: Cannot load coprocessor ReplicationObserver
> {quote}
> It looks like this was broken by HBASE-17732 to me, but I could be wrong. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)