Member since
07-17-2018
10
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2533 | 07-27-2018 01:53 AM |
07-27-2018
01:53 AM
I am using cloudera manager to handle my cluster. I found my problem. It was that I wanted to update a parameter that had already been configured by Cloudera manager team and that is a constant value. Cloudera manager doesn't allow to update some parameter like : io.storefile.bloom.block.size and the others constant parameters you cand find here : https://www.cloudera.com/documentation/other/shared/CDH5-Beta-2-RNs/hbase_jdiff_report-p-cdh4.5-c-cdh5b2/cdh4.5/constant-values.html So my problem is solved. Thank you very much for your help.
... View more
07-18-2018
02:40 PM
1 Kudo
@yassine24, This shows how to update a service configuration http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles You need to update the config with the attribute and value. The configuration is JSON format, but the safety valve you want is in XML format. An example of how to update a safety valve (hdfs in this case) via REST API is here: curl -iv -X PUT -H "Content-Type:application/json" -H "Accept:application/json" -d '{"items":[{ "name": "core_site_safety_valve","value": "<property><name>hadoop.proxyuser.ztsps.users</name><value>*</value></property><property><name>hadoop.proxyuser.ztsps.groups</name><value>*</value></property>"}]}' http://admin:admin@10.1.0.1:7180/api/v12/clusters/cluster/services/hdfs/config I am pretty sure you can pass the JSON as shown above in the -d argument hbase.update_config() or whatever
... View more
07-18-2018
02:31 PM
@yassine24, Basic information about how to query and update Service config via python: http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles Also, I pulled this from the Community ... it shows how to update an hdfs safety valve via REST API: curl -iv -X PUT -H "Content-Type:application/json" -H "Accept:application/json" -d '{"items":[{ "name": "core_site_safety_valve","value": "<property><name>hadoop.proxyuser.ztsps.users</name><value>*</value></property><property><name>hadoop.proxyuser.ztsps.groups</name><value>*</value></property>"}]}' http://admin:admin@10.1.0.1:7180/api/v12/clusters/cluster/services/hdfs/config You can try using the above information to update the safety valve for hbase_service_config_safety_valve . NOTE that when updating the safety valve, what you update will replace what was there. If you want to "add" a property to the safety valve, you need to include all the properties you want as an end result.
... View more