GitHub user rickysaltzer opened a pull request:
https://github.com/apache/nifi/pull/97
NIFI-997: Periodically Renew Kerberos Tickets
Adding a patch to renew ticket every 4 hours to avoid inactive Kerberos
tickets. This was an issue found when running Kerberos enabled Hadoop
processors for a long period of time. This technically _should_ have been
handled by the Hadoop library, but due to unknown issues, the renewal thread
inside of Hadoop doesn't seem to be doing that.
This patch is fairly simplistic, and applies to all Hadoop processors as
it's implemented at on the AbstractHadoopProcessor. The kerberos ticket age is
checked against a threshold (4 hours is a safe bet) when getFileSystem() is
called. If the age exceeds the threshold, we re-login using the
UserGroupInformation class before passing back the filesystem.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rickysaltzer/nifi kerberos-renewal
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/97.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #97
----
commit b2eb61dca1204afb317bd40346065aa6a0e97647
Author: ricky <[email protected]>
Date: 2015-09-25T18:15:09Z
NIFI-997: Periodically Renew Kerberos Tickets
- Renew ticket every 4 hours to avoid inactive Kerberos tickets.
----
---
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.
---