[ https://issues.apache.org/jira/browse/HBASE-27724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nihal Jain updated HBASE-27724: ------------------------------- Fix Version/s: hbase-operator-tools-1.3.0 Hadoop Flags: Reviewed Resolution: Fixed Status: Resolved (was: Patch Available) > [HBCK2] addFsRegionsMissingInMeta command should support dumping region list > into a file which can be passed as input to assigns command > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-27724 > URL: https://issues.apache.org/jira/browse/HBASE-27724 > Project: HBase > Issue Type: Improvement > Components: hbase-operator-tools, hbck2 > Reporter: Nihal Jain > Assignee: Nihal Jain > Priority: Minor > Fix For: hbase-operator-tools-1.3.0 > > > _addFsRegionsMissingInMeta_ command currently outputs a command as last line > of output which needs to be run with hbck2 > {code:java} > assigns 22d30d9e332af3272302cf780da14c3c 43245731f82e5bb907a4433f688574c1 > 5a19939f4f219ab177dd5b376dcb882f 774514b1027846c4e3b6702e193ce03d > 7f6ad3360e0a4811c4dace8c1a901f40 8cd363e4da1b95fd43166f451546ad63 > 90e3414947f9500ec01f6672103f29d0{code} > 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: > {code:java} > # 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{code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)