hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15611) add examples to shell docs
Date Wed, 27 Apr 2016 21:22:12 GMT

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

Sean Busbey commented on HBASE-15611:

h3. how can I determine which RegionServer is currently responsible for a given row?

You can request the current host of a given row using a RegionLocator:

hbase(main):313:0> example_table = get_table 'MyTable'
hbase(main):314:0> find_row = "an_example_row_key".to_java_bytes
hbase(main):315:0> @hbase.instance_eval do
hbase(main):316:1*   puts @connection.get_region_locator(example_table.table.get_name).get_region_location(find_row,
hbase(main):317:1> end

This will give you a hostname and a listening port, which should be enough information to
find the correct RegionServer instance and its logs.

> 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

View raw message