Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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
Expert Contributor

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
Expert Contributor

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.