Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2F34193AE for ; Wed, 9 Mar 2016 22:11:46 +0000 (UTC) Received: (qmail 37181 invoked by uid 500); 9 Mar 2016 22:11:41 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 37066 invoked by uid 500); 9 Mar 2016 22:11:41 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 36949 invoked by uid 99); 9 Mar 2016 22:11:41 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2016 22:11:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CC6A82C1F64 for ; Wed, 9 Mar 2016 22:11:40 +0000 (UTC) Date: Wed, 9 Mar 2016 22:11:40 +0000 (UTC) From: "Joseph Witt (JIRA)" To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-1500) NiFi requires too much write permissions to bootstrap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NIFI-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15188153#comment-15188153 ] Joseph Witt commented on NIFI-1500: ----------------------------------- removed explicit version specification. This looks like a work and progress and will require a lot more discussion. > 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 > > 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.(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)