[
https://issues.apache.org/jira/browse/NIFI-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15142156#comment-15142156
]
Andre commented on NIFI-1500:
-----------------------------
*Issue 4* could be solved by adopting a {{var}} directory approach but instead
of spreading stuff all over the place, one could just create {{var}} and
{{repositories}} ( or whatever other name people chose) inside
_/opt/nifi/nifi-version/_
So as an example logs would go inside _/opt/nifi/nifi-version/var/logs_ while
conents of the database repository would be held within
_/opt/nifi/nifi-version/repositories/database_repository_
*Issue 3* as suggested in NIFI-1461 patch 0003 could be solved by moving
{{flows.xml.gz}} into a sub-directory (I suggest _flows_) and either creating
directory within _/opt/nifi/nifi-version/conf_ as part of the install *or*
moving {{templates}} and {{archive}} to the newly created _flows_.
*Issues 1 and 2* seem to require code changes.
> NiFi requires too much write permissions to bootstrap
> -----------------------------------------------------
>
> Key: NIFI-1500
> URL: https://issues.apache.org/jira/browse/NIFI-1500
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.5.0
> Reporter: Andre
> Fix For: 0.6.0
>
>
> As part of NIFI-1461 it was observed that NiFi boot strapping and start up
> process require access that may be described as excessive.
> The following access requirements should be reviewed (all paths are relative
> to NiFi's installation path):
> h4. Issue 1 - {{bin/nifi.sh}} requires write access to {{bin}}
> Access is used to write {{nifi.pid}}
> h4. Issue 2 - NiFi requires write access to {{lib}} crashing otherwise
> {code}
> 2016-02-11 13:00:35,497 INFO [main] org.apache.nifi.NiFi Launching NiFi...
> 2016-02-11 13:00:35,524 INFO [main] org.apache.nifi.BootstrapListener Started
> Bootstrap Listener, Listening for incoming requests on port 52097
> 2016-02-11 13:00:35,545 INFO [main] org.apache.nifi.BootstrapListener
> Successfully initiated communication with Bootstrap
> 2016-02-11 13:00:35,555 WARN [main] org.apache.nifi.nar.NarUnpacker Unable to
> load NAR library bundles due to java.io.IOException:
> /opt/nifi/nifi-0.5.0-SNAPSHOT/./lib directory does not have read/write
> privilege Will proceed without loading any further Nar bundles
> 2016-02-11 13:00:35,559 ERROR [main] org.apache.nifi.NiFi Failure to launch
> NiFi due to java.lang.IllegalStateException: Unable to find the framework NAR
> ClassLoader.
> java.lang.IllegalStateException: Unable to find the framework NAR ClassLoader.
> at org.apache.nifi.NiFi.<init>(NiFi.java:116)
> ~[nifi-runtime-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
> at org.apache.nifi.NiFi.main(NiFi.java:227)
> ~[nifi-runtime-0.5.0-SNAPSHOT.jar:0.5.0-SNAPSHOT]
> 2016-02-11 13:00:35,561 INFO [Thread-1] org.apache.nifi.NiFi Initiating
> shutdown of Jetty web server...
> 2016-02-11 13:00:35,561 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server
> shutdown completed (nicely or otherwise).
> {code}
> h4. Issue 3 - NiFi requires write access to {{conf}}
> Access is used by the process to save {{flows.xml.gz}} and to create
> {{templates}} and {{archives}} upon first start.
> h4. Issue 4 - NiFi requires write access to {{.}}
> Application uses access upon first start to create the following directories:
> - \*_repositories;
> - logs;
> - state;
> - work;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)