Hi,
HIVE is a service, which contains of components. In your case you want
to remove the host component HIVE_CLIENT from a host. Here is how you
can do it:
# Stop the component by putting it in state "INSTALLED" (yes you also
need to stop a client)
curl -u admin:admin -H "X-Requested-by:ambari" -i -k -X PUT -d
'{"ServiceComponentInfo": {"state": "INSTALLED"}}'
http://<ambari_host>:8080/api/v1/clusters/<cluster_name>/hosts/<host_fqdn>/host_components/HIVE_CLIENT
# Remove the component
curl -u admin:admin -H "X-Requested-by:ambari" -i -k -X DELETE
http://<ambari_host>:8080/api/v1/clusters/<cluster_name>/hosts/<host_fqdn>/host_components/HIVE_CLIENT
Let me know if this worked for you.
Regards,
Henning
Am 07/04/16 um 20:58 schrieb Banias H:
I have a 6-node clusters running Ambari 2.2.1.1. While installing Hive
through Ambari, I installed Hive clients all 6 nodes but now I would
like to have Hive client on only 1 node.
How do I remove Hive client on the 5 nodes?
I looked around and only found the REST calls to remove Hive
altogether. I also don't find any option through Ambari UI. I am
hoping I don't have to remove Hive and install it again as I got
tables and database setup.
Thanks, B