hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Singhi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14925) Develop HBase shell command/tool to list table's region info through command line
Date Wed, 05 Apr 2017 08:59:41 GMT

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

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

Patch overall looks fine to me.
Where are we using this ?
{code}
 @end_time = Time.now
{code}

Can we improve the output format, the alignment of header and values ? It is little difficult
to understand the output.
{noformat}
hbase(main):002:0> list_regions 't1'
 SERVER_NAME REGION_NAME START_KEY END_KEY SIZE REQUESTS
 host1,16045,1491380558177 t1,,1491380624003.2719831ece2827e7afa62c6b022f155c.  10 0 0
 host1,16045,1491380558177 t1,10,1491380624003.dbd617c150f536739ac4b145807c013b. 10 20 0 0
 host1,16045,1491380558177 t1,20,1491380624003.9eea1596bf68009bf81137ba4c4f7bc6. 20 30 0 0
 host1,16045,1491380558177 t1,30,1491380624003.4fabbbb3232d2a35bcb13b9327fc4760. 30 40 0 0
 host1,16045,1491380558177 t1,40,1491380624003.94cba65531a9ea8784e924266583d1d1. 40  0 0
5 row(s)
{noformat}

> 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
>         Attachments: HBASE-14925.002.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)

Mime
View raw message