General Usage and Invocation

HBCK2 is typically run as a Java JAR file using the hbase command-line utility.

The general syntax for invoking HBCK2 is:

Bash
Copy

Where

OptionDescription
${HBASE_HOME}/bin/hbaseThe HBase command-line script.
--config <CONF_DIR>(Optional) Specifies the directory containing HBase configuration files (e.g., /etc/hbase-conf).
hbckThe HBase subcommand used to invoke HBCK (version 2 in this case).
-j <PATH_TO_ HBCK2_JAR>Specifies the path to the HBCK2 JAR file (e.g., ~/hbase-operator-tools/hbase-hbck2/target/hbase-hbck2-1.0.0-SNAPSHOT.jar).

Once invoked correctly, the command structure for HBCK2 itself follows:

Bash
Copy

Global Options

These options can be used with any HBCK2 command.

OptionDescription
-d, --debugRun with debug output.
-h, --helpOutput this help message.
-p, --hbase.zookeeper.property.clientPort <arg>Specify the client port of the HBase ZooKeeper ensemble.
-q, --hbase.zookeeper.quorum <arg>Specify the HBase ZooKeeper ensemble (e.g., host1,host2,host3)
-s, --skipSkip HBase version check (PleaseHoldException). Use with extreme caution, especially during Master initialization, as it can bypass critical compatibility checks.
-v, --versionDisplay the HBCK2 version.
-z, --zookeeper.znode.parent <arg>Specify the parent znode of the HBase ZooKeeper ensemble (e.g., /hbase).
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated