Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28375

HBase Operator Tools fails to compile with hbase 2.6.0

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      HBase Operator Tools fails to compile with hbase 2.6.0.

      [ERROR] /file_path/hbase-operator-tools/hbase-hbck2/src/main/java/org/apache/hbase/hbck1/ReplicationChecker.java:[59,49] method getReplicationPeerStorage in class org.apache.hadoop.hbase.replication.ReplicationStorageFactory cannot be applied to given types;
      [ERROR]   required: org.apache.hadoop.fs.FileSystem,org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.conf.Configuration
      [ERROR]   found: org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.conf.Configuration
      [ERROR]   reason: actual and formal argument lists differ in length 

      Seems there is a breaking change between https://github.com/apache/hbase/blob/branch-2.5/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationStorageFactory.java vs https://github.com/apache/hbase/blob/branch-2.6/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationStorageFactory.java where a public method has been dropped, which is used by operator tools and hence  the build will fail for it. See https://github.com/apache/hbase-operator-tools/blob/master/hbase-hbck2/src/main/java/org/apache/hbase/hbck1/ReplicationChecker.java#L58 where the effected method is invoked.

      Since ReplicationStorageFactory is @InterfaceAudience.Private so maybe it is fine.

      Will try to fix and make changes in hbase-operator-tools to fall back to new method, in case if build with branch-2.6

      CC: zhangduo  

      Attachments

        Issue Links

          Activity

            People

              nihaljain.cs Nihal Jain
              nihaljain.cs Nihal Jain
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: