The install-nifi.sh doesn't add nifi service to the init.d

391 views
Skip to first unread message

eagl...@gmail.com

unread,
Sep 3, 2017, 9:57:52 PM9/3/17
to Kylo Community
Hi, All,

I follow the installation document at http://kylo.readthedocs.io/en/v0.8.3/installation to deploy kylo 0.8.3 on my hadoop cluster
to do some initial evaluation.

I use the 'offline' mode to deploy kylo since our test environment can't access Internet. One step of installation is to install NIFI, so I run the following command to install nifi:
${my_tar_root_dir}/nifi/install-nifi.sh /opt/nifi nifi nifi  ${my_tar_root_dir} -o 1.0.0
The script runs successfully

But it doesn't install the script under /etc/init.d, so I can't use 'service nifi status' to verify nifi service status, actually the nifi service doesn't start at all.

Does anyone know how to solve this issue?

Thanks

Boying

eagl...@gmail.com

unread,
Sep 3, 2017, 10:10:06 PM9/3/17
to Kylo Community
Further checking the install-nifi.sh, it seems that I can run the following command to install nifi to init.d
/opt/nifi/current/bin/nifi.sh install

Is this correct?

Boying

Greg Hart

unread,
Sep 5, 2017, 12:58:17 PM9/5/17
to Kylo Community
Hi Boying,

Kylo provides a custom init.d script for NiFi that you can use:
/opt/kylo/setup/nifi/nifi

You may need to adjust the 'dir' and 'RUN_AS_USER' parameters on lines 5 and 6 for your environment.

Jeremy Merrifield

unread,
Sep 5, 2017, 2:58:27 PM9/5/17
to Kylo Community
There is a second script that needs to be ran. It installed the service script. Please see step C in the deployment guide

$ <SETUP_DIR>/nifi/install-kylo-components.sh <NIFI_BASE_FOLDER> <KYLO_HOME> <NIFI_LINUX_USER> <NIFI_LINUX_GROUP>
Reply all
Reply to author
Forward
0 new messages