Skip to main content
h2rr821
Silver ⭐️⭐️
August 8, 2023
Solved

How to upgrade the cloudera runtime with cloudera rest api?

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!!

 

tj2007
tj2007Answer
Gold ⭐️⭐️
August 9, 2023

3 replies

tj2007
Gold ⭐️⭐️
tj2007Answer
Gold ⭐️⭐️
August 9, 2023
h2rr821
h2rr821Author
Silver ⭐️⭐️
August 9, 2023

yes. it is working. thank you!!

Translate
vitabor
Silver ⭐️⭐️
October 23, 2023

Hi,

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

Translate