[
https://issues.apache.org/jira/browse/HBASE-12366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14546021#comment-14546021
]
Devaraj Das commented on HBASE-12366:
-------------------------------------
Someone debugging a security related issue brought up this jira.. Took a quick
look at the patch - I think the chore to refresh credentials is not needed. The
code in RpcClient that handles SASL connection failures should handle the
renewal. [~srikanth235] in your tests, did you try things out with just the
login call added but without the renewal chore?
> Add login code to HBase Canary tool.
> ------------------------------------
>
> Key: HBASE-12366
> URL: https://issues.apache.org/jira/browse/HBASE-12366
> Project: HBase
> Issue Type: Bug
> Components: security
> Reporter: Srikanth Srungarapu
> Assignee: Srikanth Srungarapu
> Priority: Minor
> Fix For: 2.0.0, 0.98.8, 0.99.2
>
> Attachments: HBASE-12366_0.98.patch, HBASE-12366_0.98_v2.patch,
> HBASE-12366_master.patch, HBASE-12366_master_v2.patch,
> HBASE-12366_master_v3.patch
>
>
> Currently, HBase canary tool doesn't have provision for renewing Kerberos
> ticket. So, if it is left running for sufficiently long periods, it would
> error out with the following exception messages.
> {code}
> 2014-09-22 14:20:18,781 WARN org.apache.hadoop.security.UserGroupInformation:
> PriviledgedActionException as:hbase (auth:KERBEROS)
> cause:javax.security.sasl.SaslException: GSS initiate failed [Caused by
> GSSException: No valid credentials provided (Mechanism level: Failed to find
> any Kerberos tgt)]
> 2014-09-22 14:20:18,783 WARN org.apache.hadoop.ipc.RpcClient: Exception
> encountered while connecting to the server :
> javax.security.sasl.SaslException: GSS initiate failed [Caused by
> GSSException: No valid credentials provided (Mechanism level: Failed to find
> any Kerberos tgt)]
> 2014-09-22 14:20:18,783 FATAL org.apache.hadoop.ipc.RpcClient: SASL
> authentication failed. The most likely cause is missing or invalid
> credentials. Consider 'kinit'.
> javax.security.sasl.SaslException: GSS initiate failed [Caused by
> GSSException: No valid credentials provided (Mechanism level: Failed to find
> any Kerberos tgt)]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)