You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Karan Mehta (JIRA)" <ji...@apache.org> on 2017/04/05 21:46:41 UTC

[jira] [Comment Edited] (HBASE-14925) Develop HBase shell command/tool to list table's region info through command line

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

Karan Mehta edited comment on HBASE-14925 at 4/5/17 9:46 PM:
-------------------------------------------------------------

{quote}
Where are we using this ?
@end_time = Time.now
{quote}
This is to determine the time taken for the command to execute, the {{start_time}} variable is initialized before the call to this function.

Added a new patch with proper formatting now. Please suggest if there are better ways to format it. This formatting may be little disrupted if table names are huge or viewing screen size is small, when a single row of data extends up to 2 or more lines. 
The {{formatter.rb}} file doesn't help format if there are more than 2 columns to be displayed. 


was (Author: karanmehta93):
{quote}
Where are we using this ?
@end_time = Time.now
{quote}
This is to determine the time taken for the command to execute, the {{start_time}} variable is initialized before the call to this function.

Added a new patch with proper formatting now. Suggest if there are better ways to format it. The {{formatter.rb}} file doesn't help format if there are more than 2 columns to be displayed. 

> 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.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)