HBASE-24482 [hbase-operator-tools] build of hbck2 fails with HBase branch-2.3, due to missing dependencies

Make it so we compile and tests pass against hbase-2.3.x as
well as 2.1.x.

Remove use of @Nullable -- nice-to-have but dodgy provenance.

Use CommonFSUtils instead of FSUtils as latter no longer subclasses
CommonFSUtils whose utility we make use of in our import of hbck1
functionality (TODO: Undo this reliance on IA.Private)

hbase-hbck2/src/main/java/org/apache/hbase/FileSystemFsck.java
hbase-hbck2/src/main/java/org/apache/hbase/FsRegionsMetaRecoverer.java
hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsck.java
hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsckRepair.java
hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HFileCorruptionChecker.java
hbase-hbck2/src/main/java/org/apache/hbase/hbck1/OfflineMetaRepair.java
hbase-hbck2/src/test/java/org/apache/hbase/TestHBCK2.java
 s/CommonFSUtils/FSUtils/g

hbase-hbck2/src/main/java/org/apache/hbase/HBCKMetaTableAccessor.java
 Purge @Nullable usage.

hbase-hbck2/src/test/java/org/apache/hbase/TestSchedulingRecoveries.java
 Remove test that behaves differently between 2.1.x and 2.3.x hbase.

hbase-tools/src/test/java/org/apache/hbase/TestRegionsMerger.java
 Amend test where merging works differently between hbase-2.3.x and
 hbase-2.1.x (2.3 does more protective checks).
10 files changed
tree: 04f969df8093fd918f8d1aee751e311b405c3c7f
  1. build-support/
  2. dev-support/
  3. hbase-hbck2/
  4. hbase-operator-tools-assembly/
  5. hbase-table-reporter/
  6. hbase-tools/
  7. .asf.yaml
  8. .gitignore
  9. CHANGES.md
  10. LICENSE.txt
  11. NOTICE.txt
  12. pom.xml
  13. README.md
  14. RELEASENOTES.md
README.md

hbase-operator-tools

Host for Apache HBaseâ„¢ operator tools including:

  • HBCK2, the hbase-2.x fix-it tool, the successor to hbase-1's hbck (A.K.A hbck1).
  • TableReporter, a tool to generate a basic report on Table column counts and row sizes; use when no distributed execution available.