[jira] [Commented] (NIFI-6584) Recognize $JAVA_HOME changes via the Terminal
[ https://issues.apache.org/jira/browse/NIFI-6584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16914363#comment-16914363 ] Aldrin Piri commented on NIFI-6584: --- Glad to hear you got it working with the desired Java version. I'm going to resolve this ticket as a result of the issue being tied to issues with environment. Not sure why those file access issues arose but should not be a problem with our assembly as supplied. Is it possible that file was owned by another user? Can you provide steps to reproduce the error? If so, would you mind opening another ticket such that we can try to track down that bug. > 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 > > 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
[jira] [Commented] (NIFI-6584) Recognize $JAVA_HOME changes via the Terminal
[ https://issues.apache.org/jira/browse/NIFI-6584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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{-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 '-MM-dd_HH' from file name pattern '/home/ben/Downloads/nifi-1.9.2/logs/nifi-app_%d{-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.(FileOutputStream.java:213) at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(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
[jira] [Commented] (NIFI-6584) Recognize $JAVA_HOME changes via the Terminal
[ https://issues.apache.org/jira/browse/NIFI-6584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16913907#comment-16913907 ] Ben Stuart commented on NIFI-6584: -- [~aldrin] [~alopresto] thanks for your help. You were correct in that jenv versions were different between my account using sudo and root. Interestingly there is no "sudo Jenv versions" atleast on my machine. 'sudo jenv versions sudo: jenv: command not found' But when I opened the terminal as root 'jenv versions' showed a different version' as root, opening a Jenv shell with java_home set to java8 and then launching nifi it picked up the correct java version. > 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
[jira] [Commented] (NIFI-6584) Recognize $JAVA_HOME changes via the Terminal
[ https://issues.apache.org/jira/browse/NIFI-6584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16913890#comment-16913890 ] Andy LoPresto commented on NIFI-6584: - It may also require that you set the {{shell}} jenv Java version to 1.8, not just {{local}} via an environment variable. There is also a {{global}} version you can set. > 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)
[jira] [Commented] (NIFI-6584) Recognize $JAVA_HOME changes via the Terminal
[ https://issues.apache.org/jira/browse/NIFI-6584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16913842#comment-16913842 ] Aldrin Piri commented on NIFI-6584: --- Hi [~bennyboi], I do believe we make use of JAVA_HOME. The relevant section is here: https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh#L121-L155. We have no static references to any files in that script. We do make a best effort if all the normal avenues fail, but that outputs "JAVA_HOME not set; results may vary" as shown at https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh#L138. This does not seem to be evident in the log you shared with us. I do see you are running nifi with sudo. Does `sudo jenv versions` also provide the selected 1.8 version? Anything in the shared section look amiss to you that we may be overlooking? I know several folks in the community use jenv on a regular basis (inclusive of myself) especially as we worked to provide support for building/running on Java 11. > 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 >