Re: Bulk remove components from multiple hosts

2018-03-26 Thread Di Li
great, thx!

On Sat, Mar 24, 2018 at 6:08 AM, Attila Magyar 
wrote:

> Yes, for example this will delete all datanodes from host1,host2,host3
>
> curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE "
> http://AMBARI_SERVER/api/v1/clusters/CLUSTERNAME/host_
> components?HostRoles/component_name.in(DATANODE)&
> HostRoles/host_name.in(host1,host2,host3)"
>
> On 3/23/18, 8:58 PM, "Di Li"  wrote:
>
> Hello folks,
>
> Is there REST API support for bulk removing components from multiple
> hosts ?
>
> I know Ambari support bulk install components to multiple hosts and
> bulk
> removing of empty hosts from a cluster. It seems to me that it only
> makes
> sense if we can also bulk remove components as well.
>
> Thanks.
>
> Di
>
>
>


Re: Bulk remove components from multiple hosts

2018-03-24 Thread Attila Magyar
Yes, for example this will delete all datanodes from host1,host2,host3

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE 
"http://AMBARI_SERVER/api/v1/clusters/CLUSTERNAME/host_components?HostRoles/component_name.in(DATANODE)/host_name.in(host1,host2,host3)"

On 3/23/18, 8:58 PM, "Di Li"  wrote:

Hello folks,

Is there REST API support for bulk removing components from multiple hosts ?

I know Ambari support bulk install components to multiple hosts and bulk
removing of empty hosts from a cluster. It seems to me that it only makes
sense if we can also bulk remove components as well.

Thanks.

Di




Bulk remove components from multiple hosts

2018-03-23 Thread Di Li
Hello folks,

Is there REST API support for bulk removing components from multiple hosts ?

I know Ambari support bulk install components to multiple hosts and bulk
removing of empty hosts from a cluster. It seems to me that it only makes
sense if we can also bulk remove components as well.

Thanks.

Di