Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How to upgrade the cloudera runtime with cloudera rest api?

avatar
Explorer

I am new to cloudera rest api.

I try to upgrade the cloudera runtime with rest api instead of the web-ui for automation. 

 

I am able to download the CDH with rest api. 

 

curl -X POST -u admin:admin "http://{url}:7180/api/v44/clusters/{cluster-name}/parcels/products/CDH/versions/7.1.8-1.cdh7.1.8.p0.30990532/commands/startDownload"

 

I am stuck on it ask for upgrade the cluster when it finish the download. From the Web-UI. 

it is a series of process.

 

p1.PNG

 

p2.PNG

 

I can skip all the checkup step(I understand the risks) and upgrade the cluster.

 

How to do that with the rest api?

Thank you very much!!

 

1 ACCEPTED SOLUTION

avatar
Super Collaborator

Hi @h2rr821 ,

 

Please use the below API to upgrade the CDH

https://archive.cloudera.com/cm7/7.5.4/generic/jar/cm_api/apidocs/resource_ClustersResource.html#res...

 

 

 

Let us know how it goes.

 

Cheers!

View solution in original post

3 REPLIES 3

avatar
Super Collaborator

Hi @h2rr821 ,

 

Please use the below API to upgrade the CDH

https://archive.cloudera.com/cm7/7.5.4/generic/jar/cm_api/apidocs/resource_ClustersResource.html#res...

 

 

 

Let us know how it goes.

 

Cheers!

avatar
Explorer

yes. it is working. thank you!!

avatar
Explorer

Hi,

Can you please share example of this API call, I want to call this API for upgrade.