FAQ
For those who may be searching for this information. After lots and lots of
trail and error and searching around I got this working. Below is the flow:

#installs agent on host, you'll need to get the host ID back for next steps.

cm.host_install()

...

#adds host to cluster, distributes parcels

cluster.add_hosts([hostId])

...

#applies template, parcel distribution must finish before this step can be
called.

template.apply_host_template([hostId], True)


#deploy config

cluster.deploy_client_config()


On Friday, April 11, 2014 11:07:36 PM UTC-7, Jesse Edwards wrote:

I'm currently trying to add a host to the existing cluster and apply a
template using the python API. I've made decent progress thus far however,
I'm unable to find what API to call to install the parcels on the new host.

I issued the install host command, this adds it to the cluster and starts
the agent, but leaves it with a CDH version of NONE.

I've attempted to issue this command both with and w/o a repo url. In each
case parcels are not installed. The agent however is installed and it is
heartbeating to the server, but the parcels never get deployed.

Any help would be greatly appreciated!
To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedApr 12, '14 at 6:07a
activeApr 14, '14 at 5:07p
posts2
users1
websitecloudera.com
irc#hadoop

1 user in discussion

Jesse Edwards: 2 posts

People

Translate

site design / logo © 2022 Grokbase