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

Sean Busbey commented on HBASE-15611:
-------------------------------------

h3. how do I list all the regions for a table?

{code}
hbase(main):017:0> example_table = get_table ‘MyTable’
hbase(main):018:0> @hbase.admin(@formatter).instance_eval do 
@admin.get_table_regions(example_table.table.get_name).each do |region|
hbase(main):019:2*   p region.to_string
hbase(main):020:2> end end
{code}

> add examples to shell docs 
> ---------------------------
>
>                 Key: HBASE-15611
>                 URL: https://issues.apache.org/jira/browse/HBASE-15611
>             Project: HBase
>          Issue Type: Improvement
>          Components: documentation, shell
>            Reporter: Sean Busbey
>              Labels: beginner
>             Fix For: 2.0.0
>
>
> It would be nice if our shell documentation included some additional examples 
> of operational tasks one can perform.
> things to include to come in comments. when we have a patch to submit we can 
> update the jira summary to better reflect what scope we end up with.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to