Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to add properties by REST API

avatar

we have ambari cluster version 2.6.1 with HDP version - 2.6.4

I want to add by API those properties

Ambari dasboard.--> YARN --> Configs-->Advanced-->Customer yarn-site --> Click on "Add Property"


yarn.nodemanager.localizer.cache.target-size-mb = 10240

yarn.nodemanager.localizer.cache.cleanup.interval-ms = 300000

so both parameters will be in Customer yarn-site

please advice how to do this task with REST API?

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar

@Akhil thank you so much its works very cool ,

Another question regarding the configs.py

lets say we want to add anew line as YARN_TEST=TEST in yarn-env template ( under

Advanced yarn-env )

YARN_TEST=TEST
   
Michael-Bronson

avatar

Hi @Michael Bronson,

sorry i missed the comment as you didnt tag me by name.

you can follow the same method with --action=set .

you can refer to this Good document by apache : https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations#Modifyconfigurations-Editco...

Please Mark answer as resolved if this helped you 🙂