Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.0, 1.5.1
-
None
-
None
Description
In 1.4.x, I was able to switch between configurations using the following curl command:
curl -u <user>:<password> -X PUT -H "X-Requested-By: ml" http://<address>:8080/api/v1/cluster/AMCluster1 -d '{"Clusters":{"desired_config":{"type":"hdfs-site","tag":"version1"}}}'
However, in 1.5.x, this doesn't appear to work anymore even though documentation suggests it should. https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/configuration.md
I now see the following error:
{ "status" : 500, "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Configuration with tag 'version1' exists for 'hdfs-site'" }
The work-around for this is to perform a GET on previous configuration that is required and create it as a new configuration, setting the desired_config at the same time.
Attachments
Attachments
Issue Links
- links to