ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myroslav Papirkovskyy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-7027) Config History: need current version for each config group
Date Tue, 26 Aug 2014 23:57:58 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-7027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Myroslav Papirkovskyy updated AMBARI-7027:
------------------------------------------

    Attachment: AMBARI-7027.patch

Updated

> Config History: need current version for each config group
> ----------------------------------------------------------
>
>                 Key: AMBARI-7027
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7027
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.7.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-7027.patch, AMBARI-7027.patch
>
>
> From: 
> {code} 
> http://c6401.ambari.apache.org:8080/api/v1/clusters/cl123?fields=Clusters/desired_serviceconfigversions&minimal_response=true
> {code}
> We get:
> {code}
> {
>   "Clusters" : {
>     "cluster_name" : "cl123",
>     "version" : "HDP-2.1",
>     "desired_serviceconfigversions" : {
>       "GANGLIA" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "GANGLIA",
>         "serviceconfigversion" : 1,
>         "createtime" : 1408644005764,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "HBASE" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "HBASE",
>         "serviceconfigversion" : 4,
>         "createtime" : 1408644005410,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "HDFS" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "HDFS",
>         "serviceconfigversion" : 15,
>         "createtime" : 1408666843905,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin",
>         "service_config_version_note" : "i changed \ndatanode\nvolumn\nfailure\ntolarrrrrsdjfhkSHdfkjhagjhaghkjhkghkjfhgkhkdhfgkhkdhfgjhjdhfhghdfhgkhfhkjhdfghkjhdfjhg"
>       },
>       "HIVE" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "HIVE",
>         "serviceconfigversion" : 4,
>         "createtime" : 1408644005281,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "MAPREDUCE2" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "MAPREDUCE2",
>         "serviceconfigversion" : 2,
>         "createtime" : 1408644006338,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "NAGIOS" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "NAGIOS",
>         "serviceconfigversion" : 1,
>         "createtime" : 1408644005564,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "PIG" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "PIG",
>         "serviceconfigversion" : 3,
>         "createtime" : 1408644006559,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "STORM" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "STORM",
>         "serviceconfigversion" : 2,
>         "createtime" : 1408644006849,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "TEZ" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "TEZ",
>         "serviceconfigversion" : 2,
>         "createtime" : 1408644006664,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "WEBHCAT" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "WEBHCAT",
>         "serviceconfigversion" : 2,
>         "createtime" : 1408644005879,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "YARN" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "YARN",
>         "serviceconfigversion" : 4,
>         "createtime" : 1408644006231,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       },
>       "ZOOKEEPER" : {
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "ZOOKEEPER",
>         "serviceconfigversion" : 2,
>         "createtime" : 1408644006453,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin"
>       }
>     }
>   }
> }
> {code}
> So we know each current service config version for each service, but this is for 'Default
' config group only.
> eg, for HDFS default  config group, the current version is 15 ("serviceconfigversion":
15).
> However, we need a current version for each config group.
> If new config groups are created there should be multiple "serviceconfigversion" for
each group. 
> *Expected api results might be like*:
> {code}
> "HDFS" : [{
>         "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "HDFS",
>         "serviceconfigversion" : 15,
>         "createtime" : 1408666843905,
>         "group_id" : null,
>         "group_name" : null,
>         "user" : "admin",
>         "service_config_version_note" : "i changed \ndatanode\nvolumn\nfailure\ntolarrrrrsdjfhkSHdfkjhagjhaghkjhkghkjfhgkhkdhfgkhkdhfgjhjdhfhghdfhgkhfhkjhdfghkjhdfjhg"
>  },
> {  "hosts" : null,
>         "cluster_name" : "cl123",
>         "service_name" : "HDFS",
>         "serviceconfigversion" : 20,
>         "createtime" : 1408666843905,
>         "group_id" : 1,
>         "group_name" :hdfs1,
>         "user" : "admin",
>         "service_config_version_note" : ""
> }]
> {code}
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message