HBase provides a HBCK tool that is implemented by the Hbasefsck class and is used primarily for consistency checking and integrity checking. You can view the parameters of the HBCK by using the following command,
[Root@openstack-2 ~]# hbase hbck-h Java HotSpot (TM) 64-bit Server VM warning:using incremental CMS is deprecated and wil L likely be removed in a future release 17/06/05 15:31:52 INFO Configuration.deprecation:fs.default.name is deprecated. Instead, use Fs.defaultfs usage:fsck [opts] {only tables} where [opts] is:-help Display Help Options (this)-det
ails Display full report of all regions. -timelag <timeInSeconds> Process only regions that has not experienced any metadata updates in the last <time
inseconds> seconds. -sleepbeforererun <timeInSeconds> Sleep This many seconds before checking if the fix worked if run with-fix-sum
Mary Print Only summary of the tables and status.
-metaonly only check the state of the Hbase:meta table.
-sidelinedir
Once you start running, the Hbck tool executes. META. Table to collect all the relevant information that is held, and also scans the root directory in HDFs that is used by hbase. The collected information is then compared to report related consistency and completeness issues.
Consistency check
The consistency check is in region to check if the region exists at the same time. META. Tables and HDFs, and check whether it is assigned to a unique region server.
Integrity check
The integrity check compares the region to the table details in a table to find the missing area, while checking for holes or overlaps in the range of start and end keys.