Monday, 1 August 2016

Failed to Install Apache NiFi Ambari 2.4/HDP 2.5

Installing Nifi via Ambari was failing because of some Ambari API changes in 2.4


1. Delete existing NiFi and Download NiFi service package

VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'`
rm -rf /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/NIFI  

sudo git clone   /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/NIFI

2. Restart Ambari 
service ambari restart

#non sandbox
sudo service ambari-server restart

3. Click 'Add Service' to add NiFi, the default port is 9090


1 comment:

  1. i am getting this error:
    sandbox login: root's password:
    Last login: Thu Ap
    [root@sandbox ~]#
    [root@sandbox ~]# VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'` rm -rf /var/lib/ambari-server/r
    [root@sandbox ~]# sudo git clone /var/lib/ambari-server/resources/stacks/HDP/2.4/servic
    Initialized empty Git repository in /var/lib/ambari-server/resources/stacks/HDP/2.4/services/NIFI/.git/
    error: Couldn't resolve host '' while accessing

    fatal: HTTP request failed
    [root@sandbox ~]#