Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-2818

NIFI requires write access to NIFI_HOME/lib upon start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 0.7.0
    • 1.1.0
    • None

    Description

      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:

      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);
                      }
                  }
      

      Attachments

        Issue Links

          Activity

            People

              joewitt Joe Witt
              trixpan Andre F de Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: