Looks like 0.7.0 doesn't install as a service quite right on linux/centos 7.

I untar'd it in:
 #/opt/nifi/current -> nifi-0.7.0-SNAPSHOT

I followed these steps:
#/opt/nifi/current/bin/nifi.sh install
#chkconfig nifi on
#service nifi start

That copies the nifi.sh script into /etc/init.d correctly, however it can't
start as a service because the "dirname" when starting as a service (at
least in my case) appears to be /etc/init.d, instead of the nifi bin dir,
resulting in this error:

#$ sudo service nifi start
#/etc/init.d/nifi: line 28: /etc/init.d/nifi-env.sh: No such file or
directory

I changed the SCRIPT_DIR variable to be my current nifi bin dir, to get it
to work.

   1. From: # SCRIPT_DIR=$(dirname "$0")
   2. To: # SCRIPT_DIR=/opt/nifi/current/bin


Thanks,
Ryan

Reply via email to