[ https://issues.apache.org/jira/browse/HBASE-14925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15042022#comment-15042022 ]
stack commented on HBASE-14925: ------------------------------- To be clear, the sed hackery above is not meant to replace the original wish for a simple way of listing regions and servers. The hard part I think is how to format the output (taking into consideration that keys may have binary content..). The list suggestion with a means of specifying how to do the output seems good ([~huaxiang]?) Would be cool too if rather than solve the explicit ask here, instead we did some generic changes -- such as making it so it easy to iterate row results in the shell to do with the result as you wish -- so it was easy to satisfy requests like those of the original posters. E.g: being able to iterate in the shell on the rows returned out of a Scan: {code} hbase> for result in "hbase:meta".scan({FILTER, [COLUMNS]) do puts(results.get('info:server') + " " + results.get("info:regioninfo")) end {code} ... or some such ... but even just writing the above out, it is ugly... in ruby+hbase shell DSL... and it is incomplete not writing escaped strings.... So scratch this last suggestion (smile) at least for now. > Develop HBase shell command/tool to list table's region info through command > line > --------------------------------------------------------------------------------- > > Key: HBASE-14925 > URL: https://issues.apache.org/jira/browse/HBASE-14925 > Project: HBase > Issue Type: Improvement > Components: shell > Reporter: Romil Choksi > > I am going through the hbase shell commands to see if there is anything I can > use to get all the regions info just for a particular table. I don’t see any > such command that provides me that information. > It would be better to have a command that provides region info, start key, > end key etc taking a table name as the input parameter. This is available > through HBase UI on clicking on a particular table's link > A tool/shell command to get a list of regions for a table or all tables in a > tabular structured output (that is machine readable) -- This message was sent by Atlassian JIRA (v6.3.4#6332)