Repository: falcon
Updated Branches:
  refs/heads/master 3c2d79497 -> dc470882f


FALCON-2325 Kerberos Service Token refresh does not happen

Author: Pallavi Nagesha Rao <[email protected]>

Reviewers: @sandeepSamudrala

Closes #398 from pallavi-rao/FALCON-2325 and squashes the following commits:

e0c858abc [Pallavi Nagesha Rao] FALCON-2325 Removal of unnecessary whitespace
cce15ea01 [Pallavi Nagesha Rao] FALCON-2325 Kerberos Service Token refresh does 
not happen


Project: http://git-wip-us.apache.org/repos/asf/falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/dc470882
Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/dc470882
Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/dc470882

Branch: refs/heads/master
Commit: dc470882f983906c5601400590a9c1003eb27109
Parents: 3c2d794
Author: Pallavi Nagesha Rao <[email protected]>
Authored: Mon Feb 26 11:00:39 2018 +0530
Committer: pallavi-rao <[email protected]>
Committed: Mon Feb 26 11:00:39 2018 +0530

----------------------------------------------------------------------
 .../falcon/security/AuthenticationInitializationService.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/dc470882/common/src/main/java/org/apache/falcon/security/AuthenticationInitializationService.java
----------------------------------------------------------------------
diff --git 
a/common/src/main/java/org/apache/falcon/security/AuthenticationInitializationService.java
 
b/common/src/main/java/org/apache/falcon/security/AuthenticationInitializationService.java
index 31be07a..57faf97 100644
--- 
a/common/src/main/java/org/apache/falcon/security/AuthenticationInitializationService.java
+++ 
b/common/src/main/java/org/apache/falcon/security/AuthenticationInitializationService.java
@@ -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);

Reply via email to