- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to use CM API to distribute parcel to a host
- Labels:
-
Cloudera Manager
Created on ‎09-27-2016 10:58 AM - edited ‎09-16-2022 03:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am creating a python script which is based on CM API to add hosts to a cluster.
My challenges is:
I couldn't find which API call to distribute parcel to hosts especially if there is a way to install the parcel on specified hosts. I checked the following link but didn't find anything useful:
https://cloudera.github.io/cm_api/epydoc/5.8.0/cm_api-module.html
Created ‎09-27-2016 11:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The CM UI will show the upgrade option when you are trying to activate a CDH parcel of a higher version. This will take you through the upgrade wizard, which is generally what you want.
In your case, you don't really want the upgrade wizard and can use the API to directly activate 5.5.1 again.
If your API script should never be run when CDH is already installed, you can add a check to your script to validate that requirement.
Rather than trying to test with a single host within a cluster, you can make a test cluster with a single host and try out your API script.
Created ‎09-27-2016 01:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you add a host, CM will automatically distribute all parcels to that host and activate it so it matches all other hosts in the cluster.
Created ‎09-27-2016 01:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
NP and thanks! I was also confused at the first place, when adding a new host on CM UI, there is one step which parcels being downloaded, distributed and activated on all hosts. That made me think managing parcel is a required step when adding new hosts in API.

- « Previous
-
- 1
- 2
- Next »