Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

NiFi is not starting after encrypting config files using Encrypt-Config tool

Super Collaborator


i am successfully able to encrypt my config files , but NiFi wont start with new encrypted config files.

Do i have to do anything else after running the encrypt tool utility.?? i dont have a sensitive.key under my conf folder.

it fails too quickly and i see this error in the bootstrap errors in app log.

2017-11-01 14:50:20,390 ERROR [main] org.apache.nifi.bootstrap.Command Other failure relating to setting permissions on C:\nifi\nifi-\.\conf\sensitive.key. (so that only the owner can read it). This is fatal to the bootstrap process for security reasons. Exception was: {} java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute at sun.nio.fs.WindowsSecurityDescriptor.fromAttribute( at sun.nio.fs.WindowsFileSystemProvider.newByteChannel( at java.nio.file.Files.newByteChannel( at java.nio.file.Files.createFile( at org.apache.nifi.bootstrap.RunNiFi.start( at org.apache.nifi.bootstrap.RunNiFi.main(




Hi Sai,

I believe the code that is failing is because the 1.2.0 version of Apache NiFi used POSIX file permissions to secure the sensitive.key file. However, Windows has trouble supporting those Java methods. Please file a Jira here and fully document the version of the Operating System, Java, and NiFi you are using.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.