In my server application I\'m connecting to Kerberos secured Hadoop cluster from my java application. On the application startup I do call
UserGroupInformati
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.
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.