You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andre (JIRA)" <ji...@apache.org> on 2016/09/24 11:50:20 UTC

[jira] [Created] (NIFI-2818) NIFI requires write access to NIFI_HOME/lib upon start

Andre created NIFI-2818:
---------------------------

             Summary: NIFI requires write access to NIFI_HOME/lib upon start
                 Key: NIFI-2818
                 URL: https://issues.apache.org/jira/browse/NIFI-2818
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 0.7.0, 1.0.0
            Reporter: Andre
            Assignee: Andre
             Fix For: 1.1.0


As part of NIFI-1500 we noted that NiFi requires what can be described as excessive filesystem privileges to be executed.

One of the issues identified is that NiFi requires write access to NIFI_HOME/lib as illustrated by the following:


{code}
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-nar-utils/src/main/java/org/apache/nifi/nar/NarUnpacker.java

 for (Path narLibraryDir : narLibraryDirs) {

                File narDir = narLibraryDir.toFile();
                FileUtils.ensureDirectoryExistAndCanAccess(narDir);

                File[] dirFiles = narDir.listFiles(NAR_FILTER);
                if (dirFiles != null) {
                    List<File> fileList = Arrays.asList(dirFiles);
                    narFiles.addAll(fileList);
                }
            }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)