[ 
https://issues.apache.org/jira/browse/NIFI-6584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913911#comment-16913911
 ] 

Ben Stuart commented on NIFI-6584:
----------------------------------

The reason I used sudo in the first place is because I was denied access to 
nifi.status (see below), changed the permissions to 655 and now I can launch 
nifi as "ben"

 
{code:java}
ben@ben-VirtualBox:~/Downloads/nifi-1.9.2/bin$ ./nifi.sh run
Java home: /home/ben/.jenv/versions/1.8
NiFi home: /home/ben/Downloads/nifi-1.9.2
Bootstrap Config File: /home/ben/Downloads/nifi-1.9.2/conf/bootstrap.conf
13:50:23,850 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could 
NOT find resource [logback-test.xml]
13:50:23,850 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could 
NOT find resource [logback.groovy]
13:50:23,850 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found 
resource [logback.xml] at [file:/home/ben/Downloads/nifi-1.9.2/conf/logback.xml]
13:50:23,903 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction 
- debug attribute not set
13:50:23,911 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction 
- Will scan for changes in 
[file:/home/ben/Downloads/nifi-1.9.2/conf/logback.xml] 
13:50:23,911 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction 
- Setting ReconfigureOnChangeTask scanning period to 30 seconds
13:50:23,913 |-INFO in 
ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding 
LoggerContextListener of type 
[ch.qos.logback.classic.jul.LevelChangePropagator] to the object stack
13:50:23,922 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating DEBUG 
level on Logger[ROOT] onto the JUL framework
13:50:23,922 |-INFO in 
ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Starting 
LoggerContextListener
13:50:23,922 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About 
to instantiate appender of type 
[ch.qos.logback.core.rolling.RollingFileAppender]
13:50:23,925 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming 
appender as [APP_FILE]
13:50:23,937 |-INFO in 
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@288665596 - Archive files will 
be limited to [100 MB] each.
13:50:23,961 |-INFO in 
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@288665596 - No compression 
will be used
13:50:23,962 |-INFO in 
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@288665596 - Will use the 
pattern /home/ben/Downloads/nifi-1.9.2/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log 
for the active file
13:50:23,964 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@d041cf 
- The date pattern is 'yyyy-MM-dd_HH' from file name pattern 
'/home/ben/Downloads/nifi-1.9.2/logs/nifi-app_%d{yyyy-MM-dd_HH}.%i.log'.
13:50:23,964 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@d041cf 
- Roll-over at the top of every hour.
13:50:23,967 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@d041cf 
- Setting initial period to Fri Aug 23 13:50:07 ACST 2019
13:50:23,981 |-INFO in 
ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - Active log file 
name: /home/ben/Downloads/nifi-1.9.2/logs/nifi-app.log
13:50:23,982 |-INFO in 
ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - File property is 
set to [/home/ben/Downloads/nifi-1.9.2/logs/nifi-app.log]
13:50:23,982 |-ERROR in 
ch.qos.logback.core.rolling.RollingFileAppender[APP_FILE] - 
openFile(/home/ben/Downloads/nifi-1.9.2/logs/nifi-app.log,true) call failed. 
java.io.FileNotFoundException: /home/ben/Downloads/nifi-1.9.2/logs/nifi-app.log 
(Permission denied)
 at java.io.FileNotFoundException: 
/home/ben/Downloads/nifi-1.9.2/logs/nifi-app.log (Permission denied)
 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:26)
 at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204)
 at at ch.qos.logback.core.FileAppender.start(FileAppender.java:127)
 at at 
ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100)
 at at 
ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
 at at 
ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
 at at 
ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
 at at 
ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
 at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
 at at 
ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
 at at 
ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
 at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
 at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
 at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
 at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
 at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
 at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
 at at org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:130)
 at at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:212)
13:50:23,982 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About 
to instantiate appender of type 
[ch.qos.logback.core.rolling.RollingFileAppender]
13:50:23,982 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming 
appender as [USER_FILE]
13:50:23,984 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@796684896 - No 
compression will be used
13:50:23,984 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@796684896 - 
Will use the pattern /home/ben/Downloads/nifi-1.9.2/logs/nifi-user_%d.log for 
the active file
13:50:23,985 |-INFO in 
c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date 
pattern is 'yyyy-MM-dd' from file name pattern 
'/home/ben/Downloads/nifi-1.9.2/logs/nifi-user_%d.log'.
13:50:23,985 |-INFO in 
c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at 
midnight.
13:50:23,985 |-INFO in 
c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting 
initial period to Wed Aug 21 17:03:38 ACST 2019
13:50:23,986 |-INFO in 
ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - Active log file 
name: /home/ben/Downloads/nifi-1.9.2/logs/nifi-user.log
13:50:23,986 |-INFO in 
ch.qos.logback.core.rolling.RollingFileAppender[USER_FILE] - File property is 
set to [/home/ben/Downloads/nifi-1.9.2/logs/nifi-user.log]
13:50:23,986 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About 
to instantiate appender of type 
[ch.qos.logback.core.rolling.RollingFileAppender]
13:50:23,986 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming 
appender as [BOOTSTRAP_FILE]
13:50:23,987 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@757108857 - No 
compression will be used
13:50:23,988 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@757108857 - 
Will use the pattern /home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap_%d.log 
for the active file
13:50:23,988 |-INFO in 
c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date 
pattern is 'yyyy-MM-dd' from file name pattern 
'/home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap_%d.log'.
13:50:23,988 |-INFO in 
c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at 
midnight.
13:50:23,989 |-INFO in 
c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting 
initial period to Fri Aug 23 13:37:43 ACST 2019
13:50:23,990 |-INFO in 
ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - Active log 
file name: /home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap.log
13:50:23,990 |-INFO in 
ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - File property 
is set to [/home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap.log]
13:50:23,990 |-ERROR in 
ch.qos.logback.core.rolling.RollingFileAppender[BOOTSTRAP_FILE] - 
openFile(/home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap.log,true) call 
failed. java.io.FileNotFoundException: 
/home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap.log (Permission denied)
 at java.io.FileNotFoundException: 
/home/ben/Downloads/nifi-1.9.2/logs/nifi-bootstrap.log (Permission denied)
 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:26)
 at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204)
 at at ch.qos.logback.core.FileAppender.start(FileAppender.java:127)
 at at 
ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100)
 at at 
ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
 at at 
ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
 at at 
ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
 at at 
ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
 at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
 at at 
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
 at at 
ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
 at at 
ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
 at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
 at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
 at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
 at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
 at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
 at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
 at at org.apache.nifi.bootstrap.RunNiFi.<init>(RunNiFi.java:130)
 at at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:212)
13:50:23,990 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About 
to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
13:50:23,990 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming 
appender as [CONSOLE]
13:50:23,992 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi] to INFO
13:50:23,992 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi] onto the JUL framework
13:50:23,992 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.processors] to WARN
13:50:23,992 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating WARN 
level on Logger[org.apache.nifi.processors] onto the JUL framework
13:50:23,992 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.processors.standard.LogAttribute] to 
INFO
13:50:23,992 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.processors.standard.LogAttribute] onto the JUL 
framework
13:50:23,992 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.processors.standard.LogMessage] to INFO
13:50:23,992 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.processors.standard.LogMessage] onto the JUL 
framework
13:50:23,992 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger 
[org.apache.nifi.controller.repository.StandardProcessSession] to WARN
13:50:23,992 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating WARN 
level on Logger[org.apache.nifi.controller.repository.StandardProcessSession] 
onto the JUL framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.zookeeper.ClientCnxn] to ERROR
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.zookeeper.ClientCnxn] onto the JUL framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.zookeeper.server.NIOServerCnxn] to ERROR
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.zookeeper.server.NIOServerCnxn] onto the JUL 
framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.zookeeper.server.NIOServerCnxnFactory] to 
ERROR
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.zookeeper.server.NIOServerCnxnFactory] onto the JUL 
framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.zookeeper.server.quorum] to ERROR
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.zookeeper.server.quorum] onto the JUL framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.zookeeper.ZooKeeper] to ERROR
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.zookeeper.ZooKeeper] onto the JUL framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.zookeeper.server.PrepRequestProcessor] to 
ERROR
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.zookeeper.server.PrepRequestProcessor] onto the JUL 
framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.calcite.runtime.CalciteException] to OFF
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating OFF 
level on Logger[org.apache.calcite.runtime.CalciteException] onto the JUL 
framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger 
[org.apache.curator.framework.recipes.leader.LeaderSelector] to OFF
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating OFF 
level on Logger[org.apache.curator.framework.recipes.leader.LeaderSelector] 
onto the JUL framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.curator.ConnectionState] to OFF
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating OFF 
level on Logger[org.apache.curator.ConnectionState] onto the JUL framework
13:50:23,993 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.cluster] to INFO
13:50:23,993 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.cluster] onto the JUL framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.server.JettyServer] to INFO
13:50:23,994 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.server.JettyServer] onto the JUL framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.eclipse.jetty] to INFO
13:50:23,994 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.eclipse.jetty] onto the JUL framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.springframework] to ERROR
13:50:23,994 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.springframework] onto the JUL framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.glassfish.jersey.internal.Errors] to ERROR
13:50:23,994 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.glassfish.jersey.internal.Errors] onto the JUL framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.eclipse.jetty.annotations.AnnotationParser] to 
ERROR
13:50:23,994 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.eclipse.jetty.annotations.AnnotationParser] onto the JUL 
framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.web.security] to INFO
13:50:23,994 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.web.security] onto the JUL framework
13:50:23,994 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.web.security] to false
13:50:23,994 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [USER_FILE] to Logger[org.apache.nifi.web.security]
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.web.api.config] to INFO
13:50:23,995 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.web.api.config] onto the JUL framework
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.web.api.config] to false
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [USER_FILE] to Logger[org.apache.nifi.web.api.config]
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.authorization] to INFO
13:50:23,995 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.authorization] onto the JUL framework
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.authorization] to false
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [USER_FILE] to Logger[org.apache.nifi.authorization]
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.cluster.authorization] to INFO
13:50:23,995 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.cluster.authorization] onto the JUL framework
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.cluster.authorization] to false
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [USER_FILE] to 
Logger[org.apache.nifi.cluster.authorization]
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.web.filter.RequestLogger] to INFO
13:50:23,995 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.web.filter.RequestLogger] onto the JUL framework
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.web.filter.RequestLogger] to false
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [USER_FILE] to 
Logger[org.apache.nifi.web.filter.RequestLogger]
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.bootstrap] to INFO
13:50:23,995 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.bootstrap] onto the JUL framework
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.bootstrap] to false
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.bootstrap]
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.bootstrap.Command] to INFO
13:50:23,995 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.bootstrap.Command] onto the JUL framework
13:50:23,995 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.bootstrap.Command] to false
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [CONSOLE] to Logger[org.apache.nifi.bootstrap.Command]
13:50:23,995 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [BOOTSTRAP_FILE] to 
Logger[org.apache.nifi.bootstrap.Command]
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.StdOut] to INFO
13:50:23,996 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[org.apache.nifi.StdOut] onto the JUL framework
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.StdOut] to false
13:50:23,996 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.StdOut]
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting level of logger [org.apache.nifi.StdErr] to ERROR
13:50:23,996 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating ERROR 
level on Logger[org.apache.nifi.StdErr] onto the JUL framework
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - 
Setting additivity of logger [org.apache.nifi.StdErr] to false
13:50:23,996 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [BOOTSTRAP_FILE] to Logger[org.apache.nifi.StdErr]
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - 
Setting level of ROOT logger to INFO
13:50:23,996 |-INFO in 
ch.qos.logback.classic.jul.LevelChangePropagator@56cbfb61 - Propagating INFO 
level on Logger[ROOT] onto the JUL framework
13:50:23,996 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - 
Attaching appender named [APP_FILE] to Logger[ROOT]
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction 
- End of configuration.
13:50:23,996 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@6bdf28bb 
- Registering current configuration as safe fallback point
Exception in thread "main" java.io.FileNotFoundException: 
/home/ben/Downloads/nifi-1.9.2/run/nifi.status (Permission denied)
 at java.io.FileInputStream.open0(Native Method)
 at java.io.FileInputStream.open(FileInputStream.java:195)
 at java.io.FileInputStream.<init>(FileInputStream.java:138)
 at org.apache.nifi.bootstrap.RunNiFi.loadProperties(RunNiFi.java:390)
 at org.apache.nifi.bootstrap.RunNiFi.getCurrentPort(RunNiFi.java:490)
 at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:907)
 at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:220)
ben@ben-VirtualBox:~/Downloads/nifi-1.9.2/bin$
{code}
 

> Recognize $JAVA_HOME changes via the Terminal
> ---------------------------------------------
>
>                 Key: NIFI-6584
>                 URL: https://issues.apache.org/jira/browse/NIFI-6584
>             Project: Apache NiFi
>          Issue Type: Improvement
>         Environment: Distributor ID:  Ubuntu
> Description:  Ubuntu 18.04.3 LTS
> Release:      18.04
> Codename:     bionic
> https://github.com/jenv/jenv
>            Reporter: Ben Stuart
>            Priority: Major
>             Fix For: 1.9.1
>
>
> I've been notified NiFi dosen't support java11 yet and suspect that is the 
> reason Nifi won't lunch.
> I am trying to get around this by using jenv.
> Having a look at the screenshot below you can see when I launch NiFi it 
> believes the java home is still set to Java11.
> I suspected it's realted to this: [https://github.com/jenv/jenv/issues/224]
> in summary, I suspect NiFi is pointing to a full static path to the java file 
> opposed to referencing $JAVA_HOME
> I'm hoping if this is the case, it can be improved to recognize the change 
> better.
> {code:java}
> ben@ben-VirtualBox:~/Downloads/nifi-1.9.2$ jenv versions
>  system
>  11.0
>  11.0.4
> * 1.8 (set by JENV_VERSION environment variable)
>  1.8.0.202
>  openjdk64-11.0.4
>  oracle64-1.8.0.202
> ben@ben-VirtualBox:~/Downloads/nifi-1.9.2$ java -version
> java version "1.8.0_202"
> Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
> Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
> ben@ben-VirtualBox:~/Downloads/nifi-1.9.2/bin$ sudo ./nifi.sh run
> Java home: /usr/lib/jvm/java-11-openjdk-amd64
> NiFi home: /home/ben/Downloads/nifi-1.9.2
> Bootstrap Config File: /home/ben
> /Downloads/nifi-1.9.2/conf/bootstrap.conf2019-08-23 10:36:59,977 INFO [main] 
> org.apache.nifi.bootstrap.Command Starting Apache NiFi...
> 2019-08-23 10:36:59,977 INFO [main] org.apache.nifi.bootstrap.Command Working 
> Directory: /home/ben/Downloads/nifi-1.9.2
> 2019-08-23 10:36:59,977 INFO [main] org.apache.nifi.bootstrap.Command 
> Command: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -classpath 
> /home/ben/Downloads/nifi-1.9.2/./conf:/home/ben/Downloads/nifi-1.9.2/./lib/nifi-runtime-1.9.2.jar:/home/ben/Downloads/nifi-1.9.2/./lib/nifi-framework-api-1.9.2.jar:/home/ben/Downloads/nifi-1.9.2/./lib/jcl-over-slf4j-1.7.25.jar:/home/ben/Downloads/nifi-1.9.2/./lib/slf4j-api-1.7.25.jar:/home/ben/Downloads/nifi-1.9.2/./lib/nifi-properties-1.9.2.jar:/home/ben/Downloads/nifi-1.9.2/./lib/log4j-over-slf4j-1.7.25.jar:/home/ben/Downloads/nifi-1.9.2/./lib/logback-core-1.2.3.jar:/home/ben/Downloads/nifi-1.9.2/./lib/javax.servlet-api-3.1.0.jar:/home/ben/Downloads/nifi-1.9.2/./lib/nifi-api-1.9.2.jar:/home/ben/Downloads/nifi-1.9.2/./lib/jetty-schemas-3.1.jar:/home/ben/Downloads/nifi-1.9.2/./lib/logback-classic-1.2.3.jar:/home/ben/Downloads/nifi-1.9.2/./lib/jul-to-slf4j-1.7.25.jar:/home/ben/Downloads/nifi-1.9.2/./lib/nifi-nar-utils-1.9.2.jar
>  -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m 
> -Djavax.security.auth.useSubjectCredsOnly=true 
> -Djava.security.egd=file:/dev/urandom 
> -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true 
> -Djava.awt.headless=true -Djava.protocol.handler.pkgs=sun.net.www.protocol 
> -XX:+UseG1GC 
> -Dnifi.properties.file.path=/home/ben/Downloads/nifi-1.9.2/./conf/nifi.properties
>  -Dnifi.bootstrap.listen.port=35343 -Dapp=NiFi 
> -Dorg.apache.nifi.bootstrap.config.log.dir=/home/ben/Downloads/nifi-1.9.2/logs
>  --add-modules=java.xml.bind org.apache.nifi.NiFi 
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.nifi.bootstrap.util.OSUtils 
> (file:/home/ben/Downloads/nifi-1.9.2/lib/bootstrap/nifi-bootstrap-1.9.2.jar) 
> to method java.lang.ProcessImpl.pid()
> WARNING: Please consider reporting this to the maintainers of 
> org.apache.nifi.bootstrap.util.OSUtils
> WARNING: Use --illegal-access=warn to enable warnings of further illegal 
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> 2019-08-23 10:36:59,992 INFO [main] org.apache.nifi.bootstrap.Command 
> Launched Apache NiFi with Process ID 22931
> ben@ben-VirtualBox:~/Downloads/nifi-1.9.2/bin$ 
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to