sujith71955 opened a new pull request #23429: [WIP][SPARK-26432][CORE] Not able 
to connect Hbase 2.x service Getting NoSuchMethodException while trying to 
obtain token from Hbase 2.1 service
URL: https://github.com/apache/spark/pull/23429
 
 
   ## What changes were proposed in this pull request?
   
   While obtaining token from hbase service , spark uses deprecated API of 
hbase ,
   ```public static Token<AuthenticationTokenIdentifier> 
obtainToken(Configuration conf)```
   This deprecated API is already been removed from hbase 2.x version as part 
of the hbase 2.x major release.
   there is one more stable API in 
   ```public static Token<AuthenticationTokenIdentifier> obtainToken(Connection 
conn)``` in TokenUtil class
   spark shall use this stable api for getting the delegation token.
   
   To invoke this api first connection object has to be retrieved from 
ConnectionFactory and the same connection can be passed to 
obtainToken(Connection conn) for getting token.
   eg: Call   ```public static Connection createConnection(Configuration 
conf)```
   , then call   ```public static Token<AuthenticationTokenIdentifier> 
obtainToken( Connection conn)```.
   
   ## How was this patch tested?
   To check the impact in current system existing test-cases and for verifying 
the feature, manual testing is been done.Test report has to be attached which i 
will update soon.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to