Github user mattyb149 commented on the issue:

    https://github.com/apache/nifi/pull/3086
  
    Same here, the relevant error in the Travis log is "Cannot locate default 
realm". Looking at other tests that load krb5.conf, one 
(TestHBase_1_1_2_ClientService) has this:
    
    ```
    // needed for calls to UserGroupInformation.setConfiguration() to work when 
passing in
    // config with Kerberos authentication enabled
    System.setProperty("java.security.krb5.realm", "nifi.com");
    System.setProperty("java.security.krb5.kdc", "nifi.kdc");
    ```
    
    and another (TestRangerNiFiAuthorizer) has this:
    
    ```
    // have to initialize this system property before anything else
    File krb5conf = new File("src/test/resources/krb5.conf");
    assertTrue(krb5conf.exists());
    System.setProperty("java.security.krb5.conf", krb5conf.getAbsolutePath());
    ```
    
    Perhaps one or both of these would fix the issue? Not sure how to 
reproduce, I guess you could try one and push the commit to see if Travis 
succeeds...


---

Reply via email to