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

Solutions:

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 https://github.com/abajwa-hw/ambari-nifi-service.git   /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/NIFI


2. Restart Ambari 
#sandbox
service ambari restart

#non sandbox
sudo service ambari-server restart

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

http://sandbox.hortonworks.com:9090/nifi


Reference:
https://github.com/abajwa-hw/ambari-nifi-service
https://community.hortonworks.com/questions/44042/adding-nifi-server-to-hdp-25-sandbox.html

1 comment:

  1. i am getting this error:
    sandbox login: root
    root@sandbox.hortonworks.com'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
    esources/stacks/HDP/2.4/services/NIFI
    [root@sandbox ~]# sudo git clone https://github.com/abajwa-hw/ambari-nifi-service.git /var/lib/ambari-server/resources/stacks/HDP/2.4/servic
    es/NIFI
    Initialized empty Git repository in /var/lib/ambari-server/resources/stacks/HDP/2.4/services/NIFI/.git/
    error: Couldn't resolve host 'github.com' while accessing https://github.com/abajwa-hw/ambari-nifi-service.git/info/refs

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

    ReplyDelete