You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2019/04/05 04:55:00 UTC
[jira] [Commented] (AMBARI-25212) configs.py output and Ambari API
output of config properties are not in same sorted order.
[ https://issues.apache.org/jira/browse/AMBARI-25212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810492#comment-16810492 ]
Hudson commented on AMBARI-25212:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #10483 (See [https://builds.apache.org/job/Ambari-trunk-Commit/10483/])
[AMBARI-25212] configs.py output and Ambari API output of config (joy.sensharma: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=180a7a3c1604e36e1b9f869fb42f4863d8f37926])
* (edit) ambari-server/src/main/resources/scripts/configs.py
> configs.py output and Ambari API output of config properties are not in same sorted order.
> -------------------------------------------------------------------------------------------
>
> Key: AMBARI-25212
> URL: https://issues.apache.org/jira/browse/AMBARI-25212
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: trunk
> Reporter: JaySenSharma
> Assignee: JaySenSharma
> Priority: Major
> Labels: pull-request-available
> Attachments: hive-site-using-AmbariAPI.json, hive-site-using-ConfigPy.json
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> The output of the API call and the Config.py call should look identical.
> However "Config.py" is not returning the properties in the *Same Sorted Order* which Ambari APIs are actually returning.
> {code}
> # /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=get --host=localhost --cluster=KerLatest --config-type=hive-site -f /tmp/hive-site-using-ConfigPy.json
> {code}
> However when the same is accessed via the Ambari API calls then the properties are in Sorted Order:
> {code}
> # curl -u admin:admin -H "X-Requested-By: ambari" -X GET "http://kerlatest1.example.com:8080/api/v1/clusters/KerLatest/configurations?type=hive-site&tag=version1550835190608" -o /tmp/hive-site-using-AmbariAPI.json
> {code}
> Ambari API returns the config properties inside JSON file in sorted order. But "configs.py" jumbles those properties. Ideally configs.py output should be in sync of API JSON response.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)