Created on 05-08-2018 01:37 PM - edited 08-18-2019 01:17 AM
Hi,
I moved "mysqlserver" to node2 from node1 in hive using ambari. In between mysqlserver install got failed.
Mysqlserver moved to node2 but existing node1 mysqlserver has not been deleted. I tried to delete using ambari. But delete option is disable. Please check the attached screenshot.
Looking for your reply.
Created 05-09-2018 08:28 AM
We can check any client/service for the node using the below url.
http://ambari_host:8080/api/v1/clusters/PANDA/hosts/host_name/host_components
The below commands will be used for deleting client/service.
Here PANDA is cluster name. ambari_host is ambari_server_host. host_name is fqdn of host name.
export AMBARI_USER=rambabu export AMBARI_PASSWD=password curl -u $AMBARI_USER:$AMBARI_PASSWD -H 'X-Requested-By: ambari' -X GET "http://ambari_host:8080/api/v1/clusters/PANDA/hosts/host_name/host_components/MYSQL_SERVER" curl -u $AMBARI_USER:$AMBARI_PASSWD -H 'X-Requested-By: ambari' -X DELETE "http://ambari_host:8080/api/v1/clusters/PANDA/hosts/host_name/host_components/MYSQL_SERVER"
Created 05-08-2018 02:11 PM
Hi, your MySQL Service is part of your Hive Service. You can't only delete the MySQL Service.
Created 05-09-2018 08:31 AM
We can delete kevin han. If you want you can check my solution. It worked for me.
Created 05-08-2018 02:17 PM
As mentioned before, make sure your Hive Service is connected to the new location of MySQL. Removing MySQL without will result in losing all you metadata.
You can use Ambari REST API to remove services manually:
curl -u admin:admin -H
"X-Requested-By: ambari"
-X DELETE http:
//AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services/SERVICENAME
Created 05-09-2018 08:31 AM
Thanks Umair Khan. I got the solution.
Created 05-09-2018 08:28 AM
We can check any client/service for the node using the below url.
http://ambari_host:8080/api/v1/clusters/PANDA/hosts/host_name/host_components
The below commands will be used for deleting client/service.
Here PANDA is cluster name. ambari_host is ambari_server_host. host_name is fqdn of host name.
export AMBARI_USER=rambabu export AMBARI_PASSWD=password curl -u $AMBARI_USER:$AMBARI_PASSWD -H 'X-Requested-By: ambari' -X GET "http://ambari_host:8080/api/v1/clusters/PANDA/hosts/host_name/host_components/MYSQL_SERVER" curl -u $AMBARI_USER:$AMBARI_PASSWD -H 'X-Requested-By: ambari' -X DELETE "http://ambari_host:8080/api/v1/clusters/PANDA/hosts/host_name/host_components/MYSQL_SERVER"
Created 05-09-2018 11:29 AM
Good to know. Thanks for sharing! I will give a try.
Created 05-09-2018 11:33 AM
Not sure that solutio will work 🙂
Created 05-10-2018 07:05 AM
I tried and verified in my 10 node cluster. It worked perfectly.