Github user trkurc commented on the pull request:

    https://github.com/apache/nifi/pull/97#issuecomment-150882926
  
    It looks like due to a bug in hadoop 2.6.0 client code (on a java 8 JVM 
only?) your code doesn't try to reload the ticket:
    
    What `checkTGTAndReloginFromKeytab()` does:
    
    ```
      public synchronized void checkTGTAndReloginFromKeytab() throws 
IOException {
        if (!isSecurityEnabled()
            || user.getAuthenticationMethod() != AuthenticationMethod.KERBEROS
            || !isKeytab)
          return;
    ```
    
    Here is how isKeyTab is set in 2.6.0
    
https://github.com/apache/hadoop/blob/release-2.6.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java#L597
    
    This returns false for me, always!
    
    Here is what 2.6.1 is doing
    
https://github.com/apache/hadoop/blob/e286512a7143427f2975ec92cdc4fad0a093a456/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java#L623
    
    I'm going to try a java 7 vm.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to