Feargal, The .tar.gz one from this link: http://nifi.apache.org/download.html I installed Java from here https://www.oracle.com/technetwork/java/javase/downloads/index.html and JDK from here https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
On Thu, Jul 25, 2019 at 2:54 PM Feargal Hogan <[email protected]> wrote: > Adam > Which downloadable version? > Feargal > > > > *Feargal Hogan* > *m:* +44 7745 817086 | *e:* [email protected] > > > On 25 Jul 2019, at 13:51, Adam Kocsis <[email protected]> wrote: > > Hi Feargal, > > I am new with NiFi as well, but I was able to run it easily. I use the > downloadable version, just simply extracted it into my Downloads folder for > testing purposes. > When I start it from terminal I also get the 'JAVA_HOME is not set' error, > but it works like charm. > The nifi.sh file is in the bin library for me, and 'nifi' is not a > recognisable command in my terminal, so your installation from brew was > successful. > It seems that Java is not installed on your machine properly. I installed > it from packages I downloaded from Oracle, but someone with better Java > knowledge may help. > Here is the java version from my terminal: > ~/D/*nifi-1.9.2 * java -version > 3464ms Thu Jul 25 14:27:51 2019 > java version "1.8.0_212" > Java(TM) SE Runtime Environment (build 1.8.0_212-b10) > Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode) > > Regards, > Adam > > On Thu, Jul 25, 2019 at 2:11 PM Feargal Hogan <[email protected]> > wrote: > >> Thanks for that >> It seems that JAVA_HOME is not set >> feargal$ nifi status >> 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 >> >> 2019-07-25 11:15:14,968 INFO [main] org.apache.nifi.bootstrap.Command >> Apache NiFi is not running >> >> >> which java >> returns >> /usr/bin/java >> >> which is not a directory >> >> also >> >> feargal$ java -version >> openjdk version "12.0.2" 2019-07-16 >> OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10) >> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.2+10, mixed mode, >> sharing) >> >> This was installed using brew as brew intially complained about a lack of >> java and helpfully suggested to install AdoptOpenJDK and helpfully reported >> ==> *Moving Generic Artifact 'jdk-12.0.2+10' to >> '/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.2.jdk'.* >> >> But that is not the location for JAVA_HOME. >> >> Any suggestions on setting JAVA_HOME? >> >> Further, the startup instructions say to navigate to the folder where >> nifi is installed (/usr/local/Cellar/nifi/1.9.2/libexec) and run >> bin/nifi.sh start >> >> But there is no nifi.sh at that location, just a bunch of .bat files, and >> a nifi-env.bat, and a nifi executable (I assume) >> >> But when I try a simple >> nifi start >> >> I get >> 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 >> >> WARNING: An illegal reflective access operation has occurred >> WARNING: Illegal reflective access by >> org.apache.nifi.bootstrap.util.OSUtils >> (file:/usr/local/Cellar/nifi/1.9.2/libexec/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 >> >> and http://localhost:8080/nifi returns ERR_CONNECTION_REFUSED >> >> So not sure if >> 1) I need to explicitly sewt JAVA_HOME and if so to what? >> 2) I should assume the docs are out of date and 'nifi start’ is all I >> need, once everything else is setup? >> 3) have I missed something? >> >> Thanks >> >> Feargal >> >> >> On 25 Jul 2019, at 11:04, Arpad Boda <[email protected]> wrote: >> >> Q1: "nifi status" command displays it: >> *➜ **build* *git:(**MINIFICPP-986**) **✗* nifi status >> >> Java home: >> /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home >> NiFi home: /usr/local/Cellar/nifi/1.9.2/libexec >> >> >> Q2: nope >> Q4: NiFi works as a webserver to provide the Flow design UI, you don't >> need Apache webserver integration. >> >> On Thu, Jul 25, 2019 at 11:30 AM Feargal Hogan <[email protected]> >> wrote: >> >>> Hi >>> I have installed Nifi on my MacBookPro using brew, as per the >>> documentation. >>> >>> The doc then says ‘… use a Terminal window to navigate to the directory >>> where NiFi was installed …' >>> >>> Q1: How do I find where brew installed nifi? >>> >>> Q2: Is there a dependency on an apache webserver to run nifi? >>> Q3: If so, is that dependency fulfilled or even tested during the brew >>> install of nifi? >>> Q4: If yes to #2, how do I integrate nifi with the apache webserver ? >>> >>> Thanks >>> >>> Feargal >>> >>> >> >
