Doh! I was getting too fixated on the wrong errors.
When I now test it, nifi seems to have started. Should have done that yesterday. OK. So i now need to evaluate it as well as write up my install experiences to help improve the documentation. Thanks guys Feargal > On 25 Jul 2019, at 17:04, Bryan Bende <[email protected]> wrote: > > I thought jEnv set JAVA_HOME automatically... did you run "source > ~/.bash_profile" to load the changes you made? > > Technically that should be fine, it doesn't really matter if JAVA_HOME > is set, as long as "java -version" shows Java 8 from the terminal > where you launch NiFi, which your output does show that. > > Did NiFi start this time? > > On Thu, Jul 25, 2019 at 11:59 AM Feargal Hogan <[email protected]> > wrote: >> >> So Ihave managed to install the openjdk 8 and using jenv I have set it to >> global. >> >> But jenv doesn’t seem to be setting JAVA_HOME >> >> >> feargalnewmbp4:~ feargal$ more ~/.bash_profile >> >> # Setting PATH for Python 3.6 >> # The original version is saved in .bash_profile.pysave >> PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}" >> export PATH >> export VISUAL=nano >> export EDITOR="$VISUAL" >> >> # Setting PATH for Python 3.7 >> # The original version is saved in .bash_profile.pysave >> PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}" >> export PATH >> >> export PATH="$HOME/.jenv/bin:$PATH" >> eval "$(jenv init -)" >> >> feargalnewmbp4:~ feargal$ java -version >> openjdk version "1.8.0_222" >> OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10) >> OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode) >> feargalnewmbp4:~ feargal$ jenv doctor >> [OK] No JAVA_HOME set >> [OK] Java binaries in path are jenv shims >> [OK] Jenv is correctly loaded >> feargalnewmbp4:~ feargal$ nifi start >> nifi: JAVA_HOME not set; results may vary >> >> Java home: >> NiFi home: /usr/local/Cellar/nifi/1.9.2/libexec >> >> Bootstrap Config File: >> /usr/local/Cellar/nifi/1.9.2/libexec/conf/bootstrap.conf >> >> >> >> >> Any ideas?
