saintstack commented on a change in pull request #45: HBASE-23371 [HBCK2]
Provide client side method for removing ghost regions in meta.
URL:
https://github.com/apache/hbase-operator-tools/pull/45#discussion_r354609793
##########
File path: hbase-hbck2/README.md
##########
@@ -174,13 +174,46 @@ Command:
for how to generate new report.
SEE ALSO: reportMissingRegionsInMeta
+ removeExtraRegionsFromMeta <NAMESPACE|NAMESPACE:TABLENAME>...
+ To be used when regions present on hbase:meta, but with no related
+ directories on the file system. Needs hbase:meta
+ to be online. For each table name passed as parameter, performs diff
+ between regions available in hbase:meta and region dirs on the given
+ file system, removing extra regions from meta with no matching directory.
+ An example removing extra regions for tables 'tbl_1' in the default
+ namespace, 'tbl_2' in namespace 'n1' and for all tables from
+ namespace 'n2':
+ $ HBCK2 removeExtraRegionsFromMeta default:tbl_1 n1:tbl_2 n2
+ SEE ALSO: reportExtraRegionsInMeta
+ SEE ALSO: addFsRegionsMissingInMeta
+ SEE ALSO: fixMeta
+
replication [OPTIONS] [<TABLENAME>...]
Options:
-f, --fix fix any replication issues found.
Looks for undeleted replication queues and deletes them if passed the
'--fix' option. Pass a table name to check for replication barrier and
purge if '--fix'.
+ reportExtraRegionsInMeta <NAMESPACE|NAMESPACE:TABLENAME>...
Review comment:
This cuts down some on the number of commands operator sees.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services