Skip to main content
kotopes
Bronze III
May 11, 2022
Solved

Cloudera API for yarnQMPage managing Resource polls/placement/partitioning

hi, 

I download latest python swagger manager api, but not found api keys for:

get current resource pools config: 

GET cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/partitions/default/queues 

 

add resource pool, and reconfigure old: 

POST /cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/partitions/default/queues/root

 

get scheduler configs: 

GET /cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/configs

 

reconfigure pool scheduler: 

PUT /cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/configs

 

reconfigure pool parameters:

PUT /cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/partitions/default/queues/root.pool_name

 

please add it, or update documentation, if already present: https://archive.cloudera.com/cm7/7.4.4/generic/jar/cm_api/swagger-html-sdk-docs/python/README.html

 

araujo
araujoAnswer
Platinum ⭐️⭐️⭐️
May 17, 2022

@kotopes ,

 

The API endpoint that you're looking for is the same you use to reconfigure pool parameters, but using a GET method instead of PUT:

GET /cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/partitions/default/queues/root.pool_name

 

Cheers,

André

 

-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.

2 replies

araujo
Platinum ⭐️⭐️⭐️
araujoAnswer
Platinum ⭐️⭐️⭐️
May 17, 2022

@kotopes ,

 

The API endpoint that you're looking for is the same you use to reconfigure pool parameters, but using a GET method instead of PUT:

GET /cmf/clusters/cluster-name/queue-manager-api/api/v1/environments/dev/clusters/cluster-name/resources/scheduler/partitions/default/queues/root.pool_name

 

Cheers,

André

 

Translate
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
VidyaSargur
Community Manager
Community Manager
May 18, 2022

@kotopes Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.