You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Banias H <ba...@gmail.com> on 2016/04/07 20:58:59 UTC

How to remove a client from a host

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

Re: How to remove a client from a host

Posted by Banias H <ba...@gmail.com>.
That works wonderfully. Thanks Henning.

B

On Thu, Apr 7, 2016 at 2:53 PM, Henning Kropp <hk...@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
>>
>
>
>

Re: How to remove a client from a host

Posted by Henning Kropp <hk...@microlution.de>.
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