Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
addFsRegionsMissingInMeta command currently outputs a command as last line of output which needs to be run with hbck2
assigns 22d30d9e332af3272302cf780da14c3c 43245731f82e5bb907a4433f688574c1 5a19939f4f219ab177dd5b376dcb882f 774514b1027846c4e3b6702e193ce03d 7f6ad3360e0a4811c4dace8c1a901f40 8cd363e4da1b95fd43166f451546ad63 90e3414947f9500ec01f6672103f29d0
This is good, but the user has to copy and format the command, which can get really big depending on how many regions need to be assigned.
addFsRegionsMissingInMeta should support a flag, say -f to facilitate dumping region list into a file, which can be passed onto as input to assigns command via -i parameter.
Sample expected use-case:
# Dump output of command (in a formatted manner) to file hbase hbck -j hbase-hbck2-version.jar addFsRegionsMissingInMeta -i table_list.txt -f regions_to_assign.txt # Pass file as input to assigns hbase hbck -j hbase-hbck2-version.jar assigns -i regions_to_assign.txt
Attachments
Issue Links
- relates to
-
HBASE-27961 [HBCK2] Running assigns/unassigns command with large number of files/regions throws CallTimeoutException
- Resolved
- links to