Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to check the progress of add_host call in cm API

How to check the progress of add_host call in cm API

Contributor

The following API will add a host to the cluster, it bascially does parcel distruibution and installnation on the selected host.

cluster.add_hosts(HOSTID)

My problem is that I don't know how to check if parcel has been sucessfully installed on the host.

 

I tried

cluster.add_hosts(HOSTID).wait()

 

but apparentaly the wait method was not defined in API for this call.

 

What I want to achieve is to make sure the parcel is installed successfully on the host so I can continue the next steps such as apply host template etc.

 

Can anyone help? My API is V11

 

 

1 REPLY 1

Re: How to check the progress of add_host call in cm API

New Contributor

Were you able to find out any solution for this? I am also facing the same issue.