[ 
https://issues.apache.org/jira/browse/HBASE-14925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998629#comment-15998629
 ] 

Ashish Singhi commented on HBASE-14925:
---------------------------------------

The output format looks excellent now.
{noformat}
hbase(main):017:0> list_regions 't1'
                                   SERVER_NAME |                                
           REGION_NAME |  START_KEY |    END_KEY |  SIZE |   REQ |   LOCALITY |
 --------------------------------------------- | 
----------------------------------------------------- | ---------- | ---------- 
| ----- | ----- | ---------- |
 root1-hp-elitebook-840-g2,16020,1494005096648 |   
t1,,1494005164462.4d9d371ed4d468aa6f1dfae6b48ec7a4. |            |         10 | 
    0 |     0 |        0.0 |
 root1-hp-elitebook-840-g2,16020,1494005096648 | 
t1,10,1494005164462.d0c412c1666a368aa60fb80d71dc9904. |         10 |         20 
|     0 |     1 |        1.0 |
 root1-hp-elitebook-840-g2,16020,1494005096648 | 
t1,20,1494005164462.a50bb3ad5bf8fad50990005c57e4e3cf. |         20 |         30 
|     0 |     1 |        1.0 |
 root1-hp-elitebook-840-g2,16020,1494005096648 | 
t1,30,1494005164462.53d81eb62fec73f0e0e5e61d2a3a33bb. |         30 |         40 
|     0 |     1 |        1.0 |
 root1-hp-elitebook-840-g2,16020,1494005096648 | 
t1,40,1494005164462.5ed8f3ab592d3c4edc7fa717aead0fa3. |         40 |            
|     0 |     4 |        1.0 |
 5 rows
{noformat}

I am +1 too. Thanks [~karanmehta93] for the addendum.

> 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
>            Assignee: Karan Mehta
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: HBASE-14925.002.patch, 
> HBASE-14925.003.addendum.001.patch, HBASE-14925.003.patch, HBASE-14925.patch
>
>
> 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.15#6346)

Reply via email to