Support Questions

Find answers, ask questions, and share your expertise
Announcements
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

Hi,

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 log..no 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-1.2.0.3.0.2.0-19\.\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(WindowsSecurityDescriptor.java:358) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:222) at java.nio.file.Files.newByteChannel(Files.java:361) at java.nio.file.Files.createFile(Files.java:632) at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:1043) at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:219)

Regards,

Sai

1 REPLY 1

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.