nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickysaltzer <...@git.apache.org>
Subject [GitHub] nifi pull request: NIFI-1488 Added hbase kerb auth with ugi
Date Wed, 02 Mar 2016 21:42:11 GMT
Github user rickysaltzer commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/253#discussion_r54796523
  
    --- Diff: nifi-nar-bundles/nifi-standard-services/nifi-hbase_1_1_2-client-service-bundle/nifi-hbase_1_1_2-client-service/src/main/java/org/apache/nifi/hbase/HBase_1_1_2_ClientService.java
---
    @@ -171,6 +188,15 @@ protected Connection createConnection(final ConfigurationContext
context) throws
                 }
             }
     
    +        UserGroupInformation.setConfiguration(hbaseConfig);
    +
    +        if (UserGroupInformation.isSecurityEnabled()) {
    +            LOG.info("SECURITY IS ENABLED");
    +            UserGroupInformation.loginUserFromKeytab(context.getProperty(KERBEROS_PRINCIPAL).getValue(),
    --- End diff --
    
    After the initial login, you'll need to periodically renew your ticket. See [AbstractHadoopProcessor.java](https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/AbstractHadoopProcessor.java#L425-L439)
for an example.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message