Support Questions
Find answers, ask questions, and share your expertise

Cloudera manager API set parcels URL

Expert Contributor

Hi, Is there any opportunity to setup cloudera parcels url?

By default they are pointing to the latest versino of CDH, Impala, .e.t.c

I would like to point them using api to concrete version.

2 REPLIES 2

Re: Cloudera manager API set parcels URL

Cloudera Employee

Hi there,

 

Something like this will do the trick:

 

curl -v -u admin:password http://cmhost:7180/api/v3/cm/config -X PUT -H "Content-Type: application/json" --data '{ "itms": [ { "name": "REMOTE_PARCEL_REPO_URLS", "value": "http://archive.cloudera.com/cdh4/parcels/4.3.0/" } ]}'

 

We've modelled that settings as configuration of CM itself.  The value is a comma-delimited string of URLs.  I've chosen 4.3.0 to give you an example.

 

You should use the latest version of the API for your release.  Simplest is to see which is the latest that works.

 

Cheers,

 

-- Philip

Re: Cloudera manager API set parcels URL

You may also find this tutorial helpful:

http://cloudera.github.io/cm_api/docs/python-client/