Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
- is broken by
-
HBASE-27727 Implement filesystem based Replication peer storage
- Resolved
- links to