Support Questions

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

ambari rest api delete kafka service, but the componment is under unknow state

avatar
Explorer

I used the ams rest api to remove some unused service like kafka.

First, I stop the service via ams ui

Secode, i run the command curl -u admin:password -H "X-Requested-By: ambari" -X DELETE http://ams_host:8080/api/v1/clusters/mycluster_name/services/KAFK

I removed it successed, but the ambari ui has a 'unknow' state

8807-kafka-error-1.png

and i can't install kafka componment anymore, because it is installed in "Add Service Wizard", I can not do anything about kafka right now

8808-kafka-error-2.png

thx for your reply

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Can you please start and stop the ambari-server and ambari-agent where kafka is running and also form ambari DB check the hostcomponentstate table and look for the status of KAFKA service if it is still found in this table then start the ambari-agent and server and run the Delete command once again, it should help with the issue.

If not please let me know the error you are getting.

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

Can you please start and stop the ambari-server and ambari-agent where kafka is running and also form ambari DB check the hostcomponentstate table and look for the status of KAFKA service if it is still found in this table then start the ambari-agent and server and run the Delete command once again, it should help with the issue.

If not please let me know the error you are getting.

avatar
Explorer

thanks for reply

i am not here for so long

I know the issue now, it's because the table in DB has been broken

so it can't not work well

avatar
Expert Contributor

Is the issue still exists? if yes can you please share the logs of ambari.