Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution
Highlighted

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

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

Accepted Solutions

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

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

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

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

Highlighted

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

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

Highlighted

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

Expert Contributor

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

Don't have an account?
Coming from Hortonworks? Activate your account here