[
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:
{code}
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,
true).get_server_name.to_short_string
hbase(main):317:1> end
region-server-3.example.com:60020
{code}
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
(v6.3.4#6332)