Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari shows service with yellow question mark even after removal

avatar
Explorer

I tried installing Zeppelin notebook, but somehow chose the wrong node which didn't have the the Spark client. So the install failed and the node started showing Zeppelin with status "Install Failed". Since the "Actions" dropdown next to the component didn't have any "Remove" option, I used the REST API to delete the host component and service for Zeppelin.

Having successfully done this, the Zeppelin component vanished from the list of components of the particular node BUT continues to show with a yellow question mark on the Ambari homepage. No details show when I click on it and when I do Actions -> Add Service, Zeppelin Notebook has a check mark next to it.

3982-capture.png

I am unable to install Zeppelin on another node now. What do I need to do? Thanks in advance!

1 ACCEPTED SOLUTION

avatar

@Ammar Rizvi While you have deleted the host component using REST APIs, you have not deleted Zeppelin service. Hence, its being shown on Ambari UI. Please delete the service as well. Here is example of removing a service i.e. Falcon.

Note: Replace https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/ with http(s)://<ambari_server_host>:<ambari_server_port>/api/v1/clusters/<cluster_name>/

########################Get All Components for Service###########
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X GET https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/
###Stop all Components for that service
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_CLIENT
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_GC
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_MASTER
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_MONITOR
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_TRACER
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_TSERVER
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/
###Remove all Components for service
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn016rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn001rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn002rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn003rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn004rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn005rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
##Remove Service
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/


View solution in original post

2 REPLIES 2

avatar

@Ammar Rizvi While you have deleted the host component using REST APIs, you have not deleted Zeppelin service. Hence, its being shown on Ambari UI. Please delete the service as well. Here is example of removing a service i.e. Falcon.

Note: Replace https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/ with http(s)://<ambari_server_host>:<ambari_server_port>/api/v1/clusters/<cluster_name>/

########################Get All Components for Service###########
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X GET https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/
###Stop all Components for that service
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_CLIENT
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_GC
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_MASTER
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_MONITOR
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_TRACER
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceComponentInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/components/ACCUMULO_TSERVER
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X PUT -d '{"ServiceInfo": {"state": "INSTALLED"}}' https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/
###Remove all Components for service
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn016rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn001rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn002rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn003rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn004rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpdn005rlx.test.edu/host_components/A...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/hosts/gdchdpmn05prlxv.test.edu/host_components/...
##Remove Service
curl -u pxkumar:hrwx@91381 -H "X-Requested-by:ambari" -i -k -X DELETE https://gdchdpamb1rlxv:8443/api/v1/clusters/hdp_prod/services/ACCUMULO/


avatar
Explorer

This did the trick:

curl -u admin:admin -H "X-Requested-by:ambari" -i -k -X DELETE http://<host>/api/v1/clusters/<cluster>/services/ZEPPELIN

Thanks!