ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Banias H <banias4sp...@gmail.com>
Subject Re: How to remove a client from a host
Date Fri, 08 Apr 2016 14:33:29 GMT
That works wonderfully. Thanks Henning.

B

On Thu, Apr 7, 2016 at 2:53 PM, Henning Kropp <hkropp@microlution.de> wrote:

> 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
>>
>
>
>

Mime
View raw message