NiFi cannot start due to log permissions error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

NiFi cannot start due to log permissions error

bmichaud
NiFi 1.1.0, Linux Fedora
$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)


The tar is installed in one place, owned by a privileged user. Another location is owned by another user and the bin, lib, and docs folders in the non-privileged location are symbolic links pointing to the privileged area, so that configs, repositories, logs, and other runtime files can be written to the disk and maintained by the non-privileged user. I have NIFI_HOME set as an environment variable for this non-privileged user.

nonpriv@servername:/app_2/runtime/nifi
$ ll
total 39396
drwxr-xr-x. 9 nonpriv  group     4096 Jan  6 14:12 ./
drwxr-xr-x. 4 nonpriv  group     4096 Oct 31 07:42 ../
lrwxrwxrwx. 1 privuser group       31 Oct  4 10:26 bin -> /app_2/software/nifi/latest/bin/
drwxr-xr-x. 3 nonpriv  group     4096 Jan  9 07:29 conf/
drwxr-xr-x. 2 nonpriv  group     4096 Jan  6 13:35 custom_nars/
drwxr-xr-x. 2 nonpriv  group     4096 Oct  4 10:22 data/
lrwxrwxrwx. 1 privuser group       32 Oct  4 10:26 docs -> /app_2/software/nifi/latest/docs/
drwxr-xr-x. 2 nonpriv  group     4096 Nov 10 20:03 driver_jars/
lrwxrwxrwx. 1 privuser group       31 Oct  4 10:26 lib -> /app_2/software/nifi/latest/lib/
drwxr-xr-x. 2 nonpriv  group     4096 Jan  6 14:12 logs/
drwxr-xr-x. 2 nonpriv  group     4096 Nov 11 07:54 module_jars/
drwxr-xr-x. 3 nonpriv  group     4096 Jan  6 14:12 state/

privuser@servername:/app_2/software/nifi/latest
$ ll
total 188
drwxr-xr-x. 6 privuser group  4096 Jan  3 12:36 ./
drwxr-xr-x. 4 privuser group  4096 Jan  6 13:50 ../
drwxr-xr-x. 2 privuser group  4096 Jan  3 12:36 bin/
drwxr-xr-x. 2 privuser group  4096 Jan  3 12:36 conf/
drwxr-xr-x. 3 privuser group  4096 Jan  3 12:36 docs/
drwxr-xr-x. 3 privuser group  4096 Jan  3 12:36 lib/
-rw-r--r--. 1 privuser group 96223 Dec 23 13:50 LICENSE
-rw-r--r--. 1 privuser group 59533 Dec 23 13:50 NOTICE
-rw-r--r--. 1 privuser group  4549 Dec 23 13:50 README

This set-up has worked in the past (previously used for 1.0.0). However, now it does not work, and it appears to be resetting the working directory to the install location rather than the one from which I am invoking, and I get the following errors:

nonpriv@servername:/app_2/runtime/nifi
$ ./bin/nifi.sh run

Java home: /usr/java/latest
NiFi home: /app_2/software/nifi/nifi-1.1.0

Bootstrap Config File: /app_2/software/nifi/nifi-1.1.0/conf/bootstrap.conf

09:19:47,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
09:19:47,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
09:19:47,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/app_2/software/nifi/nifi-1.1.0/conf/logback.xml]
09:19:47,447 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
09:19:47,454 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 30 seconds
09:19:47,454 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in [[/app_2/software/nifi/nifi-1.1.0/conf/logback.xml]] every 30 seconds.
09:19:47,454 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter
09:19:47,460 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [ch.qos.logback.classic.jul.LevelChangePropagator] to the object stack
09:19:47,477 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating DEBUG level on Logger[ROOT] onto the JUL framework
09:19:47,477 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Starting LoggerContextListener
09:19:47,477 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
09:19:47,481 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [APP_FILE]
09:19:47,532 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
09:19:47,533 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /app_2/software/nifi/nifi-1.1.0/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log for the active file
09:19:47,536 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7e0babb1 - The date pattern is 'yyyy-MM-dd_HH' from file name pattern '/app_2/software/nifi/nifi-1.1.0/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log'.
09:19:47,536 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7e0babb1 - Roll-over at the top of every hour.
09:19:47,538 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7e0babb1 - Setting initial period to Mon Jan 09 09:19:47 CST 2017
09:19:47,555 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - Active log file name: /app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log
09:19:47,555 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - File property is set to [/app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log]
09:19:47,556 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - Failed to create parent directories for [/app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log]
09:19:47,556 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - openFile(/app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log,true) call failed. java.io.FileNotFoundException: /app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log (No such file or directory)
        at java.io.FileNotFoundException: /app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log (No such file or directory)
        at      at java.io.FileOutputStream.open0(Native Method)
        at      at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at      at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at      at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:28)
        at      at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
        at      at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
        at      at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
        at      at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
        at      at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
        at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
        at      at org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:123)
        at      at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:205)
09:19:47,556 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
09:19:47,556 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [USER_FILE]
09:19:47,557 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
09:19:47,557 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /app_2/software/nifi/nifi-1.1.0/logs/nifi-user_%d.log for the active file
09:19:47,558 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern '/app_2/software/nifi/nifi-1.1.0/logs/nifi-user_%d.log'.
09:19:47,558 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
09:19:47,558 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Jan 09 09:19:47 CST 2017
09:19:47,559 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - Active log file name: /app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log
09:19:47,559 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - File property is set to [/app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log]
09:19:47,559 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - Failed to create parent directories for [/app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log]
09:19:47,559 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - openFile(/app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log,true) call failed. java.io.FileNotFoundException: /app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log (No such file or directory)
        at java.io.FileNotFoundException: /app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log (No such file or directory)
        at      at java.io.FileOutputStream.open0(Native Method)
        at      at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at      at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at      at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:28)
        at      at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
        at      at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
        at      at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
        at      at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
        at      at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
        at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
        at      at org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:123)
        at      at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:205)
09:19:47,559 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
09:19:47,559 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [BOOTSTRAP_FILE]
09:19:47,560 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
09:19:47,560 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap_%d.log for the active file
09:19:47,561 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern '/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap_%d.log'.
09:19:47,561 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
09:19:47,561 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Jan 09 09:19:47 CST 2017
09:19:47,562 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - Active log file name: /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log
09:19:47,562 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - File property is set to [/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log]
09:19:47,562 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - Failed to create parent directories for [/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log]
09:19:47,562 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - openFile(/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log,true) call failed. java.io.FileNotFoundException: /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log (No such file or directory)
        at java.io.FileNotFoundException: /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log (No such file or directory)
        at      at java.io.FileOutputStream.open0(Native Method)
        at      at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at      at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at      at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:28)
        at      at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
        at      at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
        at      at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
        at      at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
        at      at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
        at      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
        at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:283)
        at      at org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:123)
        at      at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:205)
09:19:47,562 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
09:19:47,563 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
09:19:47,566 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi] to INFO
09:19:47,566 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.processors] to WARN
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating WARN level on Logger[org.apache.nifi.processors] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.processors.standard.LogAttribute] to INFO
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.processors.standard.LogAttribute] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.controller.repository.StandardProcessSession] to WARN
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating WARN level on Logger[org.apache.nifi.controller.repository.StandardProcessSession] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper.ClientCnxn] to ERROR
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.zookeeper.ClientCnxn] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper.server.NIOServerCnxn] to ERROR
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.zookeeper.server.NIOServerCnxn] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper.server.NIOServerCnxnFactory] to ERROR
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.zookeeper.server.NIOServerCnxnFactory] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper.server.quorum] to ERROR
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.zookeeper.server.quorum] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper.ZooKeeper] to ERROR
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.zookeeper.ZooKeeper] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper.server.PrepRequestProcessor] to ERROR
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.zookeeper.server.PrepRequestProcessor] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.curator.framework.recipes.leader.LeaderSelector] to OFF
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating OFF level on Logger[org.apache.curator.framework.recipes.leader.LeaderSelector] onto the JUL framework
09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.curator.ConnectionState] to OFF
09:19:47,567 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating OFF level on Logger[org.apache.curator.ConnectionState] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.cluster] to INFO
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.cluster] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.server.JettyServer] to INFO
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.server.JettyServer] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.eclipse.jetty] to INFO
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.eclipse.jetty] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.sun.jersey.spi.container.servlet.WebComponent] to ERROR
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[com.sun.jersey.spi.container.servlet.WebComponent] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.sun.jersey.spi.spring] to ERROR
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[com.sun.jersey.spi.spring] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework] to ERROR
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.springframework] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.sun.jersey.spi.inject.Errors] to ERROR
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[com.sun.jersey.spi.inject.Errors] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.web.security] to INFO
09:19:47,568 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.web.security] onto the JUL framework
09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.web.security] to false
09:19:47,568 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USER_FILE] to Logger[org.apache.nifi.web.security]
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.web.api.config] to INFO
09:19:47,569 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.web.api.config] onto the JUL framework
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.web.api.config] to false
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USER_FILE] to Logger[org.apache.nifi.web.api.config]
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.authorization] to INFO
09:19:47,569 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.authorization] onto the JUL framework
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.authorization] to false
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USER_FILE] to Logger[org.apache.nifi.authorization]
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.cluster.authorization] to INFO
09:19:47,569 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.cluster.authorization] onto the JUL framework
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.cluster.authorization] to false
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USER_FILE] to Logger[org.apache.nifi.cluster.authorization]
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.web.filter.RequestLogger] to INFO
09:19:47,569 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.web.filter.RequestLogger] onto the JUL framework
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.web.filter.RequestLogger] to false
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [USER_FILE] to Logger[org.apache.nifi.web.filter.RequestLogger]
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.bootstrap] to INFO
09:19:47,569 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.bootstrap] onto the JUL framework
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.bootstrap] to false
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.bootstrap]
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.bootstrap.Command] to INFO
09:19:47,569 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.bootstrap.Command] onto the JUL framework
09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.bootstrap.Command] to false
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[org.apache.nifi.bootstrap.Command]
09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.bootstrap.Command]
09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.StdOut] to INFO
09:19:47,570 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[org.apache.nifi.StdOut] onto the JUL framework
09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.StdOut] to false
09:19:47,570 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.StdOut]
09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.nifi.StdErr] to ERROR
09:19:47,570 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating ERROR level on Logger[org.apache.nifi.StdErr] onto the JUL framework
09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.nifi.StdErr] to false
09:19:47,570 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.StdErr]
09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
09:19:47,570 |-INFO in ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating INFO level on Logger[ROOT] onto the JUL framework
09:19:47,570 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [APP_FILE] to Logger[ROOT]
09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
09:19:47,571 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@2ff4f00f - Registering current configuration as safe fallback point

Exception in thread "main" java.io.IOException: /app_2/software/nifi/nifi-1.1.0/run could not be created
        at org.apache.nifi.util.file.FileUtils.ensureDirectoryExistAndCanAccess(FileUtils.java:86)
        at org.apache.nifi.bootstrap.RunNiFi.getBootstrapFile(RunNiFi.java:353)
        at org.apache.nifi.bootstrap.RunNiFi.getStatusFile(RunNiFi.java:364)
        at org.apache.nifi.bootstrap.RunNiFi.loadProperties(RunNiFi.java:377)
        at org.apache.nifi.bootstrap.RunNiFi.getCurrentPort(RunNiFi.java:483)
        at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:900)
        at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:213)

codaops@apsrt3410:/app_2/runtime/nifi
Reply | Threaded
Open this post in threaded view
|

Re: NiFi cannot start due to log permissions error

Aldrin Piri
Hello,

Currently, NIFI_HOME is determined via the physical location of the script
and thus the reason why it is picking up the other path.  Typically, the
bin directory is not one that is suggested to be configured external to the
distribution in the interest of facilitating upgrade processes.

I see throughout the logs and final stacktrace that the path
/app_2/software/nifi/nifi-1.1.0/ is listed, but do not see that in either
of the listings you provided.  Could you please provide how that
relates to /app_2/software/nifi/latest?
Another symlink?

Does explicitly setting your NIFI_HOME (/app_2/runtime/nifi) in nifi-env.sh
resolve this issue for you?


Thanks!

--aldrin

On Mon, Jan 9, 2017 at 8:55 AM, bmichaud <[hidden email]> wrote:

> NiFi 1.1.0, Linux Fedora
> $ java -version
> java version "1.8.0_65"
> Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
>
>
> The tar is installed in one place, owned by a privileged user. Another
> location is owned by another user and the bin, lib, and docs folders in the
> non-privileged location are symbolic links pointing to the privileged area,
> so that configs, repositories, logs, and other runtime files can be written
> to the disk and maintained by the non-privileged user. I have NIFI_HOME set
> as an environment variable for this non-privileged user.
>
> nonpriv@servername:/app_2/runtime/nifi
> $ ll
> total 39396
> drwxr-xr-x. 9 nonpriv  group     4096 Jan  6 14:12 ./
> drwxr-xr-x. 4 nonpriv  group     4096 Oct 31 07:42 ../
> lrwxrwxrwx. 1 privuser group       31 Oct  4 10:26 bin ->
> /app_2/software/nifi/latest/bin/
> drwxr-xr-x. 3 nonpriv  group     4096 Jan  9 07:29 conf/
> drwxr-xr-x. 2 nonpriv  group     4096 Jan  6 13:35 custom_nars/
> drwxr-xr-x. 2 nonpriv  group     4096 Oct  4 10:22 data/
> lrwxrwxrwx. 1 privuser group       32 Oct  4 10:26 docs ->
> /app_2/software/nifi/latest/docs/
> drwxr-xr-x. 2 nonpriv  group     4096 Nov 10 20:03 driver_jars/
> lrwxrwxrwx. 1 privuser group       31 Oct  4 10:26 lib ->
> /app_2/software/nifi/latest/lib/
> drwxr-xr-x. 2 nonpriv  group     4096 Jan  6 14:12 logs/
> drwxr-xr-x. 2 nonpriv  group     4096 Nov 11 07:54 module_jars/
> drwxr-xr-x. 3 nonpriv  group     4096 Jan  6 14:12 state/
>
> privuser@servername:/app_2/software/nifi/latest
> $ ll
> total 188
> drwxr-xr-x. 6 privuser group  4096 Jan  3 12:36 ./
> drwxr-xr-x. 4 privuser group  4096 Jan  6 13:50 ../
> drwxr-xr-x. 2 privuser group  4096 Jan  3 12:36 bin/
> drwxr-xr-x. 2 privuser group  4096 Jan  3 12:36 conf/
> drwxr-xr-x. 3 privuser group  4096 Jan  3 12:36 docs/
> drwxr-xr-x. 3 privuser group  4096 Jan  3 12:36 lib/
> -rw-r--r--. 1 privuser group 96223 Dec 23 13:50 LICENSE
> -rw-r--r--. 1 privuser group 59533 Dec 23 13:50 NOTICE
> -rw-r--r--. 1 privuser group  4549 Dec 23 13:50 README
>
> This set-up has worked in the past (previously used for 1.0.0). However,
> now
> it does not work, and it appears to be resetting the working directory to
> the install location rather than the one from which I am invoking, and I
> get
> the following errors:
>
> nonpriv@servername:/app_2/runtime/nifi
> $ ./bin/nifi.sh run
>
> Java home: /usr/java/latest
> NiFi home: /app_2/software/nifi/nifi-1.1.0
>
> Bootstrap Config File: /app_2/software/nifi/nifi-1.1.0/conf/bootstrap.conf
>
> 09:19:47,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
> Could
> NOT find resource [logback.groovy]
> 09:19:47,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
> Could
> NOT find resource [logback-test.xml]
> 09:19:47,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
> Found
> resource [logback.xml] at
> [file:/app_2/software/nifi/nifi-1.1.0/conf/logback.xml]
> 09:19:47,447 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute
> not set
> 09:19:47,454 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - Setting
> ReconfigureOnChangeFilter scanning period to 30 seconds
> 09:19:47,454 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} -
> Will
> scan for changes in [[/app_2/software/nifi/nifi-1.1.0/conf/logback.xml]]
> every 30 seconds.
> 09:19:47,454 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - Adding
> ReconfigureOnChangeFilter as a turbo filter
> 09:19:47,460 |-INFO in
> ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding
> LoggerContextListener of type
> [ch.qos.logback.classic.jul.LevelChangePropagator] to the object stack
> 09:19:47,477 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> DEBUG level on Logger[ROOT] onto the JUL framework
> 09:19:47,477 |-INFO in
> ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Starting
> LoggerContextListener
> 09:19:47,477 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type
> [ch.qos.logback.core.rolling.RollingFileAppender]
> 09:19:47,481 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [APP_FILE]
> 09:19:47,532 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No
> compression will be used
> 09:19:47,533 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will
> use
> the pattern
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log for
> the active file
> 09:19:47,536 |-INFO in
> ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7e0babb1 - The date
> pattern is 'yyyy-MM-dd_HH' from file name pattern
> '/app_2/software/nifi/nifi-1.1.0/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log'.
> 09:19:47,536 |-INFO in
> ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7e0babb1 - Roll-over at
> the top of every hour.
> 09:19:47,538 |-INFO in
> ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7e0babb1 - Setting
> initial
> period to Mon Jan 09 09:19:47 CST 2017
> 09:19:47,555 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - Active log
> file
> name: /app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log
> 09:19:47,555 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - File property
> is
> set to [/app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log]
> 09:19:47,556 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - Failed to
> create
> parent directories for [/app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log]
> 09:19:47,556 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] -
> openFile(/app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log,true) call
> failed. java.io.FileNotFoundException:
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log (No such file or
> directory)
>         at java.io.FileNotFoundException:
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-app.log (No such file or
> directory)
>         at      at java.io.FileOutputStream.open0(Native Method)
>         at      at java.io.FileOutputStream.open(
> FileOutputStream.java:270)
>         at      at
> java.io.FileOutputStream.<init>(FileOutputStream.java:213)
>         at      at
> ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(
> ResilientFileOutputStream.java:28)
>         at      at
> ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
>         at      at
> ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
>         at      at
> ch.qos.logback.core.rolling.RollingFileAppender.start(
> RollingFileAppender.java:86)
>         at      at
> ch.qos.logback.core.joran.action.AppenderAction.end(
> AppenderAction.java:96)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.callEndAction(
> Interpreter.java:317)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
>         at      at
> ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:149)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:135)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:99)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:49)
>         at      at
> ch.qos.logback.classic.util.ContextInitializer.configureByResource(
> ContextInitializer.java:77)
>         at      at
> ch.qos.logback.classic.util.ContextInitializer.autoConfig(
> ContextInitializer.java:152)
>         at      at
> org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
>         at      at
> org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
>         at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
>         at      at
> org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
>         at      at
> org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
>         at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:
> 283)
>         at      at
> org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:123)
>         at      at org.apache.nifi.bootstrap.
> RunNiFi.main(RunNiFi.java:205)
> 09:19:47,556 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type
> [ch.qos.logback.core.rolling.RollingFileAppender]
> 09:19:47,556 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [USER_FILE]
> 09:19:47,557 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No
> compression will be used
> 09:19:47,557 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will
> use
> the pattern /app_2/software/nifi/nifi-1.1.0/logs/nifi-user_%d.log for the
> active file
> 09:19:47,558 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The
> date
> pattern is 'yyyy-MM-dd' from file name pattern
> '/app_2/software/nifi/nifi-1.1.0/logs/nifi-user_%d.log'.
> 09:19:47,558 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy -
> Roll-over
> at midnight.
> 09:19:47,558 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting
> initial period to Mon Jan 09 09:19:47 CST 2017
> 09:19:47,559 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - Active log
> file
> name: /app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log
> 09:19:47,559 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - File property
> is set to [/app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log]
> 09:19:47,559 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - Failed to
> create parent directories for
> [/app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log]
> 09:19:47,559 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] -
> openFile(/app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log,true) call
> failed. java.io.FileNotFoundException:
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log (No such file or
> directory)
>         at java.io.FileNotFoundException:
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-user.log (No such file or
> directory)
>         at      at java.io.FileOutputStream.open0(Native Method)
>         at      at java.io.FileOutputStream.open(
> FileOutputStream.java:270)
>         at      at
> java.io.FileOutputStream.<init>(FileOutputStream.java:213)
>         at      at
> ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(
> ResilientFileOutputStream.java:28)
>         at      at
> ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
>         at      at
> ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
>         at      at
> ch.qos.logback.core.rolling.RollingFileAppender.start(
> RollingFileAppender.java:86)
>         at      at
> ch.qos.logback.core.joran.action.AppenderAction.end(
> AppenderAction.java:96)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.callEndAction(
> Interpreter.java:317)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
>         at      at
> ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:149)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:135)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:99)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:49)
>         at      at
> ch.qos.logback.classic.util.ContextInitializer.configureByResource(
> ContextInitializer.java:77)
>         at      at
> ch.qos.logback.classic.util.ContextInitializer.autoConfig(
> ContextInitializer.java:152)
>         at      at
> org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
>         at      at
> org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
>         at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
>         at      at
> org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
>         at      at
> org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
>         at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:
> 283)
>         at      at
> org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:123)
>         at      at org.apache.nifi.bootstrap.
> RunNiFi.main(RunNiFi.java:205)
> 09:19:47,559 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type
> [ch.qos.logback.core.rolling.RollingFileAppender]
> 09:19:47,559 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [BOOTSTRAP_FILE]
> 09:19:47,560 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No
> compression will be used
> 09:19:47,560 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will
> use
> the pattern /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap_%d.log for
> the active file
> 09:19:47,561 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The
> date
> pattern is 'yyyy-MM-dd' from file name pattern
> '/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap_%d.log'.
> 09:19:47,561 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy -
> Roll-over
> at midnight.
> 09:19:47,561 |-INFO in
> c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting
> initial period to Mon Jan 09 09:19:47 CST 2017
> 09:19:47,562 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - Active
> log
> file name: /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log
> 09:19:47,562 |-INFO in
> ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - File
> property is set to [/app_2/software/nifi/nifi-1.
> 1.0/logs/nifi-bootstrap.log]
> 09:19:47,562 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - Failed
> to
> create parent directories for
> [/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log]
> 09:19:47,562 |-ERROR in
> ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] -
> openFile(/app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log,true)
> call
> failed. java.io.FileNotFoundException:
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log (No such file or
> directory)
>         at java.io.FileNotFoundException:
> /app_2/software/nifi/nifi-1.1.0/logs/nifi-bootstrap.log (No such file or
> directory)
>         at      at java.io.FileOutputStream.open0(Native Method)
>         at      at java.io.FileOutputStream.open(
> FileOutputStream.java:270)
>         at      at
> java.io.FileOutputStream.<init>(FileOutputStream.java:213)
>         at      at
> ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(
> ResilientFileOutputStream.java:28)
>         at      at
> ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
>         at      at
> ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
>         at      at
> ch.qos.logback.core.rolling.RollingFileAppender.start(
> RollingFileAppender.java:86)
>         at      at
> ch.qos.logback.core.joran.action.AppenderAction.end(
> AppenderAction.java:96)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.callEndAction(
> Interpreter.java:317)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
>         at      at
> ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
>         at      at
> ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:149)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:135)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:99)
>         at      at
> ch.qos.logback.core.joran.GenericConfigurator.doConfigure(
> GenericConfigurator.java:49)
>         at      at
> ch.qos.logback.classic.util.ContextInitializer.configureByResource(
> ContextInitializer.java:77)
>         at      at
> ch.qos.logback.classic.util.ContextInitializer.autoConfig(
> ContextInitializer.java:152)
>         at      at
> org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
>         at      at
> org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
>         at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:141)
>         at      at
> org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:120)
>         at      at
> org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:331)
>         at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:
> 283)
>         at      at
> org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:123)
>         at      at org.apache.nifi.bootstrap.
> RunNiFi.main(RunNiFi.java:205)
> 09:19:47,562 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> About to instantiate appender of type [ch.qos.logback.core.
> ConsoleAppender]
> 09:19:47,563 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
> Naming appender as [CONSOLE]
> 09:19:47,566 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi] to INFO
> 09:19:47,566 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi] onto the JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.processors] to WARN
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> WARN
> level on Logger[org.apache.nifi.processors] onto the JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.processors.standard.LogAttribute]
> to INFO
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.processors.standard.LogAttribute] onto the
> JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger
> [org.apache.nifi.controller.repository.StandardProcessSession] to WARN
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> WARN
> level on
> Logger[org.apache.nifi.controller.repository.StandardProcessSession] onto
> the JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.zookeeper.ClientCnxn] to ERROR
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.zookeeper.ClientCnxn] onto the JUL
> framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.zookeeper.server.NIOServerCnxn] to
> ERROR
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.zookeeper.server.NIOServerCnxn] onto the
> JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.zookeeper.server.NIOServerCnxnFactory]
> to ERROR
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.zookeeper.server.NIOServerCnxnFactory]
> onto
> the JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.zookeeper.server.quorum] to ERROR
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.zookeeper.server.quorum] onto the JUL
> framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.zookeeper.ZooKeeper] to ERROR
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.zookeeper.ZooKeeper] onto the JUL
> framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.zookeeper.server.PrepRequestProcessor]
> to ERROR
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.zookeeper.server.PrepRequestProcessor]
> onto
> the JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger
> [org.apache.curator.framework.recipes.leader.LeaderSelector] to OFF
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> OFF
> level on Logger[org.apache.curator.framework.recipes.leader.
> LeaderSelector]
> onto the JUL framework
> 09:19:47,567 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.curator.ConnectionState] to OFF
> 09:19:47,567 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> OFF
> level on Logger[org.apache.curator.ConnectionState] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.cluster] to INFO
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.cluster] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.server.JettyServer] to INFO
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.server.JettyServer] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.eclipse.jetty] to INFO
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.eclipse.jetty] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [com.sun.jersey.spi.container.
> servlet.WebComponent]
> to ERROR
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[com.sun.jersey.spi.container.servlet.WebComponent]
> onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [com.sun.jersey.spi.spring] to ERROR
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[com.sun.jersey.spi.spring] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.springframework] to ERROR
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.springframework] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [com.sun.jersey.spi.inject.Errors] to ERROR
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[com.sun.jersey.spi.inject.Errors] onto the JUL
> framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.web.security] to INFO
> 09:19:47,568 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.web.security] onto the JUL framework
> 09:19:47,568 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.web.security] to false
> 09:19:47,568 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [USER_FILE] to Logger[org.apache.nifi.web.
> security]
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.web.api.config] to INFO
> 09:19:47,569 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.web.api.config] onto the JUL framework
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.web.api.config] to false
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [USER_FILE] to
> Logger[org.apache.nifi.web.api.config]
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.authorization] to INFO
> 09:19:47,569 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.authorization] onto the JUL framework
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.authorization] to false
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [USER_FILE] to
> Logger[org.apache.nifi.authorization]
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.cluster.authorization] to INFO
> 09:19:47,569 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.cluster.authorization] onto the JUL
> framework
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.cluster.authorization] to
> false
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [USER_FILE] to
> Logger[org.apache.nifi.cluster.authorization]
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.web.filter.RequestLogger] to INFO
> 09:19:47,569 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.web.filter.RequestLogger] onto the JUL
> framework
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.web.filter.RequestLogger] to
> false
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [USER_FILE] to
> Logger[org.apache.nifi.web.filter.RequestLogger]
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.bootstrap] to INFO
> 09:19:47,569 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.bootstrap] onto the JUL framework
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.bootstrap] to false
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [BOOTSTRAP_FILE] to
> Logger[org.apache.nifi.bootstrap]
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.bootstrap.Command] to INFO
> 09:19:47,569 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.bootstrap.Command] onto the JUL framework
> 09:19:47,569 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.bootstrap.Command] to false
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [CONSOLE] to
> Logger[org.apache.nifi.bootstrap.Command]
> 09:19:47,569 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [BOOTSTRAP_FILE] to
> Logger[org.apache.nifi.bootstrap.Command]
> 09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.StdOut] to INFO
> 09:19:47,570 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[org.apache.nifi.StdOut] onto the JUL framework
> 09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.StdOut] to false
> 09:19:47,570 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.StdOut]
> 09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting level of logger [org.apache.nifi.StdErr] to ERROR
> 09:19:47,570 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> ERROR level on Logger[org.apache.nifi.StdErr] onto the JUL framework
> 09:19:47,570 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
> Setting additivity of logger [org.apache.nifi.StdErr] to false
> 09:19:47,570 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.StdErr]
> 09:19:47,570 |-INFO in ch.qos.logback.classic.joran.
> action.RootLoggerAction
> - Setting level of ROOT logger to INFO
> 09:19:47,570 |-INFO in
> ch.qos.logback.classic.jul.LevelChangePropagator@7cf10a6f - Propagating
> INFO
> level on Logger[ROOT] onto the JUL framework
> 09:19:47,570 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction
> -
> Attaching appender named [APP_FILE] to Logger[ROOT]
> 09:19:47,570 |-INFO in
> ch.qos.logback.classic.joran.action.ConfigurationAction - End of
> configuration.
> 09:19:47,571 |-INFO in
> ch.qos.logback.classic.joran.JoranConfigurator@2ff4f00f - Registering
> current configuration as safe fallback point
>
> Exception in thread "main" java.io.IOException:
> /app_2/software/nifi/nifi-1.1.0/run could not be created
>         at
> org.apache.nifi.util.file.FileUtils.ensureDirectoryExistAndCanAcce
> ss(FileUtils.java:86)
>         at
> org.apache.nifi.bootstrap.RunNiFi.getBootstrapFile(RunNiFi.java:353)
>         at org.apache.nifi.bootstrap.RunNiFi.getStatusFile(RunNiFi.
> java:364)
>         at
> org.apache.nifi.bootstrap.RunNiFi.loadProperties(RunNiFi.java:377)
>         at
> org.apache.nifi.bootstrap.RunNiFi.getCurrentPort(RunNiFi.java:483)
>         at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:900)
>         at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:213)
>
> codaops@apsrt3410:/app_2/runtime/nifi
>
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/NiFi-cannot-start-due-to-log-
> permissions-error-tp14413.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: NiFi cannot start due to log permissions error

bmichaud
Aldrin Piri wrote
Currently, NIFI_HOME is determined via the physical location of the script
and thus the reason why it is picking up the other path.  Typically, the
bin directory is not one that is suggested to be configured external to the
distribution in the interest of facilitating upgrade processes.
I can see that in the nifi.sh script.

Aldrin Piri wrote
I see throughout the logs and final stacktrace that the path
/app_2/software/nifi/nifi-1.1.0/ is listed, but do not see that in either
of the listings you provided.  Could you please provide how that
relates to /app_2/software/nifi/latest?
Another symlink?
Yes, "latest" is a symlink pointing to the latest nifi-1.*.* directory installed in the /app_2/software/nifi directory.

Aldrin Piri wrote
Does explicitly setting your NIFI_HOME (/app_2/runtime/nifi) in nifi-env.sh
resolve this issue for you?
I did not try that, but, when I tried to change the nifi.sh to take the PHYS_DIR variable to be the dirname of $0, but that did not work. However, my current work-around is to have a copy of the bin directory in the runtime/nifi directory.

I would prefer not to do this, as it does make upgrades messier, but I am currently more concerned about the next error I got:

InvalidKeyException: Illegal key size

and I am trying to resolve that with a smaller password on my keystore and truststore files. (https://issues.apache.org/jira/browse/NIFI-3062)

Reply | Threaded
Open this post in threaded view
|

Re: NiFi cannot start due to log permissions error

Andy LoPresto-2
The illegal key size error is almost certainly due to the length of the keystore/truststore password, but the ideal solution is not to decrease the password length, but rather to either install the Unlimited Strength Jurisdiction Policy files if possible, and/or switch to using a JKS keystore rather than PKCS12. PKCS12 without the USJ policies limit the keystore password length to 7 characters, which is *not* sufficiently strong against modern computing capability. 


Andy LoPresto
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

On Jan 9, 2017, at 11:43 AM, bmichaud <[hidden email]> wrote:

Aldrin Piri wrote
Currently, NIFI_HOME is determined via the physical location of the script
and thus the reason why it is picking up the other path.  Typically, the
bin directory is not one that is suggested to be configured external to
the
distribution in the interest of facilitating upgrade processes.

I can see that in the nifi.sh script.


Aldrin Piri wrote
I see throughout the logs and final stacktrace that the path
/app_2/software/nifi/nifi-1.1.0/ is listed, but do not see that in either
of the listings you provided.  Could you please provide how that
relates to /app_2/software/nifi/latest?
Another symlink?

Yes, "latest" is a symlink pointing to the latest nifi-1.*.* directory
installed in the /app_2/software/nifi directory.


Aldrin Piri wrote
Does explicitly setting your NIFI_HOME (/app_2/runtime/nifi) in
nifi-env.sh
resolve this issue for you?

I did not try that, but, when I tried to change the nifi.sh to take the
PHYS_DIR variable to be the dirname of $0, but that did not work. However,
my current work-around is to have a copy of the bin directory in the
runtime/nifi directory.

I would prefer not to do this, as it does make upgrades messier, but I am
currently more concerned about the next error I got:

InvalidKeyException: Illegal key size

and I am trying to resolve that with a smaller password on my keystore and
truststore files. (https://issues.apache.org/jira/browse/NIFI-3062)





--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-cannot-start-due-to-log-permissions-error-tp14413p14416.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.


signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NiFi cannot start due to log permissions error

bmichaud
Andy LoPresto-2 wrote
The illegal key size error is almost certainly due to the length of the keystore/truststore password, but the ideal solution is not to decrease the password length, but rather to either install the Unlimited Strength Jurisdiction Policy files if possible, and/or switch to using a JKS keystore rather than PKCS12. PKCS12 without the USJ policies limit the keystore password length to 7 characters, which is *not* sufficiently strong against modern computing capability.
Thank you very much for that. I was able to resolve the SSL issues.