Support Questions
Find answers, ask questions, and share your expertise

How to get hbck2 tool for CDH 6.3.2?

Highlighted

How to get hbck2 tool for CDH 6.3.2?

Explorer

Hi

 

Can someone let me know from where I can obtain the hbck2 tool for CDH 6.3.2?

 

Thanks,

5 REPLIES 5
Highlighted

Re: How to get hbck2 tool for CDH 6.3.2?

Explorer

Anyone any thoughts on this one?

Highlighted

Re: How to get hbck2 tool for CDH 6.3.2?

New Contributor

We're looking for it too, any ideas?

Re: How to get hbck2 tool for CDH 6.3.2?

Cloudera Employee

Hello @tuk , you can find the hbck2 tool for CDH 6.3.3 from Cloudera via a support ticket. Else you can obtain the hbck2 tool available under the HBase distribution directory. See the HBASE Downloads Page.

https://downloads.apache.org/hbase/hbase-operator-tools-1.0.0/hbase-operator-tools-1.0.0-bin.tar.gz

http://apachemirror.wuchna.com/hbase/hbase-operator-tools-1.0.0/hbase-operator-tools-1.0.0-bin.tar.g...
- https://mirrors.estointernet.in/apache/hbase/hbase-operator-tools-1.0.0/hbase-operator-tools-1.0.0-b...

 

By default, running bin/hbase hbck, the built-in hbck1 tooling will be run. To run HBCK2, you need to point at a built HBCK2 jar using the -j option as in:

 $  ${HBASE_HOME}/bin/hbase --config /etc/hbase-conf hbck -j ~/hbase-operator-tools/hbase-hbck2/target/hbase-hbck2-1.0.0-SNAPSHOT.jar

wherein the above, /etc/hbase-conf is where the hbase deployment's configuration files resides. The HBCK2 jar is at ~/hbase-operator-tools/hbase-hbck2/target/hbase-hbck2-1.0.0-SNAPSHOT.jar. The above command with no options or arguments passed will dump out the HBCK2 help:

usage: HBCK2 [OPTIONS] COMMAND <ARGS>
Options:
 -d,--debug                                       run with debug output
 -h,--help                                        output this help message
 -p,--hbase.zookeeper.property.clientPort <arg>   port of hbase ensemble
 -q,--hbase.zookeeper.quorum <arg>                hbase ensemble
 -s,--skip                                        skip hbase version check
                                                  (PleaseHoldException)
 -v,--version                                     this hbck2 version
 -z,--zookeeper.znode.parent <arg>                parent znode of hbase
                                                  ensemble
Command:
 addFsRegionsMissingInMeta <NAMESPACE|NAMESPACE:TABLENAME>...
   Options:

 

Highlighted

Re: How to get hbck2 tool for CDH 6.3.2?

Cloudera Employee

Hello @tuk you can read about Apache HBase  (hbase-operator-tool) HBCK2 Tool here - https://github.com/apache/hbase-operator-tools/tree/master/hbase-hbck2 

 

This page suggests how to download the hbase-operator-tool which contains the "hbase-hbck2" jar used to fix the inconsistencies in CDH 6.x (hbase 2.x). 

hbase-hbck2-1.0.0-SNAPSHOT.jar

See the section talks about fixing problems using hbck2 - https://github.com/apache/hbase-operator-tools/tree/master/hbase-hbck2#fixing-problems 

Highlighted

Re: How to get hbck2 tool for CDH 6.3.2?

Expert Contributor

Hello @tuk 

 

If the Post by Pabitra assisted you, Kindly mark the Post as Solution. If you utilised any other approach, Kindly share the details in the post as well.

 

Thanks, Smarak