Auto renewal of Kerberos ticket not working from Java

后端 未结 2 1999
渐次进展
渐次进展 2020-12-22 00:44

In my server application I\'m connecting to Kerberos secured Hadoop cluster from my java application. On the application startup I do call

UserGroupInformati         


        
相关标签:
2条回答
  • 2020-12-22 01:09

    Unfortunately, there is a known issue with automatic renewal not working correctly when using the UserGroupInformation#loginUserFromKeytabAndReturnUGI method. I am not aware of any known code fix within Apache Hadoop at this time.

    Your solution to add a call to UserGroupInformation#checkTGTAndReloginFromKeytab is a viable workaround. I recommend that you stick with that for now and keep an eye on Apache Hadoop release notes to see if there is a fix committed in the future.

    0 讨论(0)
  • 2020-12-22 01:27

    Looks like the hadoop-common jar used in your java application does not match with the server. Please modify your java application to use the same version of hadoop jars exists in server.

    0 讨论(0)
提交回复
热议问题