Skip to main content
h2rr821
Silver ⭐️⭐️
Aug 8, 2023 10:58 PM UTC
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 ⭐️⭐️
Aug 9, 2023 6:33 AM UTC

3 replies

tj2007
Gold ⭐️⭐️
tj2007Answer
Gold ⭐️⭐️
Aug 9, 2023 6:33 AM UTC
h2rr821
h2rr821Author
Silver ⭐️⭐️
Aug 9, 2023 9:59 PM UTC

yes. it is working. thank you!!

Translate
vitabor
Silver ⭐️⭐️
Oct 23, 2023 8:16 AM UTC

Hi,

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

Translate