Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
The User class currently contains some utility methods to obtain HBase authentication tokens for the given user. However, these methods initiate an RPC to the TokenProvider coprocessor endpoint, an action which should not be part of the User class' responsibilities.
This leads to a couple of problems:
- The way the methods are currently structured, it is impossible to integrate them with normal connection management for the cluster (the TokenUtil class constructs its own HTable instance internally).
- The User class is logically part of the hbase-common module, but uses the TokenUtil class (part of hbase-server, though it should probably be moved to hbase-client) through reflection, leading to a hidden dependency.
The obtainAuthTokenForJob() methods should be deprecated and the process of obtaining authentication tokens should be moved to use the normal connection lifecycle.
Attachments
Issue Links
- duplicates
-
HBASE-12493 User class should provide a way to re-use existing token
- Closed
- is related to
-
HBASE-12493 User class should provide a way to re-use existing token
- Closed