這裏的情況是:我們有一個安全(Kerberos的)HBase的集羣。 我有一個對象,在啓動時創建一個HTable實例並掛上它。它調用:HBase的使用Kerberos - 保持HTable實例中打開超過10個小時
UserGroupInformation.setConfiguration(configuration);
UserGroupInformation.loginUserFromKeytab(user, keytab);
登錄到Kerberized集羣。 這個對象然後掛起很多小時未使用。超過10個小時(從我們的Kerberos集羣票超時)後,下一次調用掃描該表的結果:
16/12/01 18:16:24 WARN security.UserGroupInformation: PriviledgedActionException as:[email protected] (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)]
16/12/01 18:16:24 WARN 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)]
16/12/01 18:16:24 FATAL 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)]
- at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
- etc.
我如何才能讓Kerberos身份驗證還活着嗎?
如果我們回答了您的問題,請正確標記;否則讓我們知道如果有的話。 –