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

Ted Yu commented on HBASE-4460:
-------------------------------

w.r.t. Lars' comment, how about using the following code to obtain 
HRegionLocation ?
{code}
    this.connection = HConnectionManager.getConnection(this.conf);
...
    HRegionLocation location = connection.locateRegion(tableName.array(),
      HRegionInfo.createRegionName(tableName.array(), null, HConstants.NINES, 
false));
{code}
                
> Support running an embedded ThriftServer within a RegionServer
> --------------------------------------------------------------
>
>                 Key: HBASE-4460
>                 URL: https://issues.apache.org/jira/browse/HBASE-4460
>             Project: HBase
>          Issue Type: New Feature
>          Components: regionserver, thrift
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>         Attachments: HBASE-4460-v1.patch
>
>
> Rather than a separate process, it can be advantageous in some situations for 
> each RegionServer to embed their own ThriftServer.  This allows each embedded 
> ThriftServer to short-circuit any queries that should be executed on the 
> local RS and skip the extra hop.  This then enables the building of fat 
> Thrift clients that cache region locations and avoid extra hops all together.
> This JIRA is just about the embedded ThriftServer.  Will open others for the 
> rest.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to