Support Questions
Find answers, ask questions, and share your expertise

Ambari API + how to change the CPU Scheduling by ambari rest api

Ambari API + how to change the CPU Scheduling by ambari rest api

 

in Ambari we have the following feature that is disable , under yarn Configs

Capture.PNG

what is the relevant ambari rest api in order to change the state of CPU Scheduling from disable to enable ?

Michael-Bronson
2 REPLIES 2

Re: Ambari API + how to change the CPU Scheduling by ambari rest api

Expert Contributor

You may already know it involves changing two XML files, capacity-scheduler.xml and yarn-site.xml

 

Details are listed here: https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.6.5/bk_yarn-resource-management/content/enabling_c...

 

Alternatively, you can try the PUT method of Ambari Management API: https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md#put

Re: Ambari API + how to change the CPU Scheduling by ambari rest api

about the API Ambari command cli , can you show me the full syntax that replace the disable to enable

Michael-Bronson