Support Questions

Find answers, ask questions, and share your expertise

How to update Nifi on my HDP sandbox 2.4 and ambari to pick the latest version

avatar
Explorer
 
1 ACCEPTED SOLUTION

avatar

If you haven't already installed Nifi on the cluster, to update the Nifi service definition in Ambari on HDP 2.4 sandbox, you can follow the steps here

rm -rf /var/lib/ambari-server/resources/stacks/HDP/2.4/services/NIFI  

sudo git clone https://github.com/abajwa-hw/ambari-nifi-service.git   /var/lib/ambari-server/resources/stacks/HDP/2.4/services/NIFI   

service ambari restart

Then restart Ambari and install Nidi using 'Add service wizard' as usual

View solution in original post

14 REPLIES 14

avatar

If the curl request errors out with the 500 error run the below command (from same README) and then re-try the original curl request

#if above errors out, run below first to fully stop the service
curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop $SERVICE via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE

avatar
Explorer

Thanks. it worked.

avatar

After this, all service actions is disable. And i received this error 500 status code received on GET method for API: /api/v1/stacks/HDP/versions/2.4/recommendations

avatar
Rising Star

I am facing the same issue. Did anyone have solution to resolve this issue!

I have Nifi old version service added in HDP 2.4. I followed the steps provided above

  1. rm -rf /var/lib/ambari-server/resources/stacks/HDP/2.4/services/NIFI
  2. sudo git clone https://github.com/abajwa-hw/ambari-nifi-service.git /var/lib/ambari-server/resources/stacks/HDP/2.4/services/NIFI
  3. service ambari restart

After doing the steps, I am seeing all the services showing heart beat lost with question mark icon status!

avatar

I resolved this problem. I create a new VM hortonworks, and do not install nifi, after this, download the new version (https://www.apache.org/dyn/closer.lua?path=/nifi/1.0.0/nifi-1.0.0-bin.zip) and use sudo sh /opt/nifi-1.0.0/bin/nifi.sh start .The problem has been resolved and nifi update has concluded.