Support Questions

Find answers, ask questions, and share your expertise

How to add properties using rest api that are not seen in the full get request

avatar
Contributor

How to I add a value the following properties using the Cloudera Manager rest api. I can see these values in the respective service configuration in the UI, but when I do a rest call using

 

curl -X GET -u "admin:admin" -i http://<server>:7180/api/v13/clusters/Cluster1/services/<servicename>/config?view=full
// used "oozie" or "hbase" as servicenames.

I see all other properties, but not these particular settings:

 

Hbase service:

1. HBase Client Advanced Configuration Snippet (Safety Valve) for hbase-site.xml

2. RegionServer Logging Advanced Configuration Snippet (Safety Valve)

3. HBase Client Environment Advanced Configuration Snippet (Safety Valve) for hbase-env.sh

Oozie Service:

1. Oozie Server Advanced Configuration Snippet (Safety Valve) for oozie-site.xml

1 ACCEPTED SOLUTION

avatar
Master Collaborator

You'll need to POST to the relevant name/values in the roleConfigGroup [0] endpoint.

 

Modify the configuration in the CM UI and then check the changes in that you've made by doing [1]. Then you should be able to use it in your curl -X POST [...]

 

 

[0] https://cloudera.github.io/cm_api/apidocs/v13/path__clusters_-clusterName-_services_-serviceName-_ro...

[1] curl -X GET http://<server>:7180/api/v13/clusters/Cluster1/services/<servicename>/<servicename>/roleConfigGroups

 

View solution in original post

3 REPLIES 3

avatar
Master Collaborator

You'll need to POST to the relevant name/values in the roleConfigGroup [0] endpoint.

 

Modify the configuration in the CM UI and then check the changes in that you've made by doing [1]. Then you should be able to use it in your curl -X POST [...]

 

 

[0] https://cloudera.github.io/cm_api/apidocs/v13/path__clusters_-clusterName-_services_-serviceName-_ro...

[1] curl -X GET http://<server>:7180/api/v13/clusters/Cluster1/services/<servicename>/<servicename>/roleConfigGroups

 

avatar
Master Collaborator

Minor correction POST meant to be PUT but I trust you've figured this out.

avatar
Contributor
Yes indeed! Thanks.