Hey Clay!
Looking at branch-2.0, I am seeing RpcServer#getRemoteAddress() or
RpcServer#getRemoteIp() which are static calls that you should be able
to execute in the Master or RegionServer (when running in the context of
an Rpc handler thread, that is.
On 9/21/18 11:12 AM, Clay Baenziger (BLOOMBERG/ 731 LEX) wrote:
Hi all,
I've been playing around trying to add client location based ACL controls. (Akin to
the GRANT user@<network specifier> type of access one has in MySQL, et. al.) My
nascent work has been on HBase 1.x but I missed that getRegionServerSerivces went
away in 2.x[1]. Is there a way to now get to the RpcServer for a getRemoteIp() call
from e.g. AccessController now that anyone can think of or should I propose adding a
get remoteIp() method for the coprocessor environments?
-Clay
[1]: At least that's what I gather by:
* HBase 1.2 RegionCoprocessorEnvironment JavaDocs vs current JavaDocs
* The discussion in and referenced by HBASE-19007