Kerberos Service Token refresh does not happen
Author: Pallavi Nagesha Rao
Reviewers:
Closes from pallavi-rao/FALCON-2325 and squashes the following commits:
[Pallavi Nagesha Rao] Removal of unnecessary whitespace
[Pallavi Nagesha Rao] Kerberos Service Token refresh does not happen
@@ -157,7 +157,11 @@ public class AuthenticationInitializationService implements FalconService {
try {
LOG.debug("Revalidating Auth Token at : {} with auth method {}", new Date(),
UserGroupInformation.getLoginUser().getAuthenticationMethod().name());
- UserGroupInformation.getLoginUser().checkTGTAndReloginFromKeytab();
+
+ // Relogin does not work in Hadoop 2.6 or 2.7 as isKeyTab check returns false
+ // UserGroupInformation.getLoginUser().checkTGTAndReloginFromKeytab();
+ // Do a regular loginUserFromKeytab, till the issue is addressed.
+ initializeKerberos();
} catch (Throwable t) {
LOG.error("Error in Auth Token revalidation task: ", t);
GenericAlert.initializeKerberosFailed("Exception in Auth Token revalidation : ", t);
