Created on 10-25-2016 02:53 AM - edited 08-18-2019 06:17 AM
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
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
thx for your reply
Created 10-25-2016 11:26 AM
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.
Created 10-25-2016 11:26 AM
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.
Created 11-18-2016 09:06 AM
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
Created 11-01-2016 03:17 AM
Is the issue still exists? if yes can you please share the logs of ambari.