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!

Cloudera API for yarnQMPage managing Resource polls/placement/partitioning

avatar
Visitor

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

 

1 ACCEPTED SOLUTION

avatar
Super Guru

@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.

View solution in original post

2 REPLIES 2

avatar
Super Guru

@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.

avatar
Community Manager

@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. 



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.
Learn more about the Cloudera Community: