Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

NiFi Container Permissions

avatar
New Contributor

Hello,
We are trying to run NiFi + Registry 2.0.0-M2 on OpenShift, and no matter what combination of USER, chgrp, chmod, etc. we use we still get

"sed: couldn't open temporary file /opt/nifi/nifi-current/conf/sedYird4M: Permission denied"

and pod fails to start. 

We followed the OpenShift guidance of adding this to Dockerfile to no avail:
RUN chgrp -R 0 /opt/nifi && chmod -R g=u /opt/nifi

Please advise, this has been a blocker for a few days now!

1 REPLY 1

avatar
Super Collaborator

Use a Dedicated Temporary Directory

Configure a Temporary Directory, Set an environment variable within your Kubernetes deployment YAML file specifying an alternative temporary directory with appropriate permissions for the NiFi user. You can leverage an empty directory volume mounted specifically for temporary files.

Update NiFi Configuration, Modify the NiFi configuration (potentially within the bootstrap.conf file) to use the environment variable for the temporary directory. Consult the NiFi documentation for specific instructions on how to configure an alternate temporary directory.

@TreantProtector