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]
Created 11-23-2016 07:00 AM
Hi Team ,
I am very much need of this API ,
In my HWX cluster where I am running the below API
curl -H "X-Requested-By: ambari" -X GET -u user:passwd http://<hostname>/api/v1/clusters/hdp-iaas-dev29/configurations?type=hive-site&tag=version1479808700...
This API has to provide me the hive-site properties but its just giving me the list of versions only without properties
"href" : "http:/<hostname>:8080/api/v1/clusters/hdp-iaas-dev29/configurations?type=hive-site&tag=version1479808700260", "tag" : "version1479808700260", "type" : "hive-site", "version" : 6, "Config" : { "cluster_name" : "hdp-iaas-dev29", "stack_id" : "HDP-2.3" } },
{ "href" : "http://hdp-iaas-dev29-control01.dev:8080/api/v1/clusters/hdp-iaas-dev29/configurations?type=hive-site&tag=version1479808700261", "tag" : "version1479808700261", "type" : "hive-site", "version" : 7, "Config" : { "cluster_name" : "hdp-iaas-dev29", "stack_id" : "HDP-2.3" } },
I took the help of below URLs and tried but no luck as of now
https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/configuration.md
https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
Can someone correct me the API to get the properties of type : hive-site only .
I tried this API
curl -H "X-Requested-By: ambari" -X GET -u user:passwd http://hdp-iaas-dev29-control01.dev:8080/api/v1/clusters/hdp-iaas-dev29/configurations/service_confi...
which is giving me entire hive config which I don't want .
Thanks ,
Hari Kishore Javvaji
Created 11-23-2016 07:39 AM
Did you try running it as following:
curl -H "X-Requested-By: ambari" -X GET -u hdp-iaas-admin:thinkbig http://hdp-iaas-dev29-control01.dev:8080/api/v1/clusters/hdp-iaas-dev29/configurations?type=hive-sit...
.
I used a (\) escape character before the "&" in the curl command.
INCORRECT
type=hive-site&tag=version1479808700260
CORRECT
type=hive-site\&tag=version1479808700260
Created 11-23-2016 07:39 AM
Did you try running it as following:
curl -H "X-Requested-By: ambari" -X GET -u hdp-iaas-admin:thinkbig http://hdp-iaas-dev29-control01.dev:8080/api/v1/clusters/hdp-iaas-dev29/configurations?type=hive-sit...
.
I used a (\) escape character before the "&" in the curl command.
INCORRECT
type=hive-site&tag=version1479808700260
CORRECT
type=hive-site\&tag=version1479808700260
Created 11-23-2016 09:40 AM
Thanks JSS for your quick comeback!!
I corrected and It worked now .
Its good if someone can modify the WIKI https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
to avoid confusions for a starter like me