You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/04/21 05:25:59 UTC
[jira] [Commented] (AMBARI-10610) Expose Stack to Configuration
Endpoints
[ https://issues.apache.org/jira/browse/AMBARI-10610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504226#comment-14504226 ]
Hudson commented on AMBARI-10610:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2381 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2381/])
AMBARI-10610 - Expose Stack to Configuration Endpoints (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3fd5c16e3a070bd4dd6a6529d5dff70c7be81cc1)
* ambari-server/src/main/resources/properties.json
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigurationResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceConfigVersionResponse.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/ConfigurationResponse.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/JMXHostProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/state/ConfigImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceConfigVersionResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/state/Config.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ConfigurationResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java
* ambari-server/src/main/resources/key_properties.json
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RequestImplTest.java
> Expose Stack to Configuration Endpoints
> ---------------------------------------
>
> Key: AMBARI-10610
> URL: https://issues.apache.org/jira/browse/AMBARI-10610
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Fix For: 2.1.0
>
>
> +Cluster API Changes+
> Add the stack ID string (eg HDP-2.2) to the JSON output in the configurations response.
> {code:title=http://localhost:8080/api/v1/clusters/c1?fields=configurations}
> {
> "href" : "http://localhost:8080/api/v1/clusters/c1?fields=configurations",
> "Clusters" : {
> "cluster_name" : "c1",
> "version" : "HDP-2.2"
> },
> "configurations" : [
> {
> "href" : "http://localhost:8080/api/v1/clusters/c1/configurations?type=ams-env&tag=version1",
> "tag" : "version1",
> "type" : "ams-env",
> "version" : 1,
> "Config" : {
> "cluster_name" : "c1",
> "stack_id" : "HDP-2.2"
> }
> },
> ...
> {code}
> +Configuration API Changes+
> Add the stack ID string to each configuration (ie hdfs-site)
> Reference call:
> /api/v1/clusters/c1/configurations
> {code:title=http://localhost:8080/api/v1/clusters/c1/configurations}
> {
> "href" : "http://localhost:8080/api/v1/clusters/c1/configurations",
> "items" : [
> {
> "href" : "http://localhost:8080/api/v1/clusters/c1/configurations?type=ams-env&tag=version1",
> "tag" : "version1",
> "type" : "ams-env",
> "version" : 1,
> "Config" : {
> "cluster_name" : "c1",
> "stack_id" : "HDP-2.2"
> }
> },
> ...
> {code}
> +Service Configuration API Changes+
> Add the stack ID string (eg HDP-2.2) to the output JSON for a service config.
> Reference call:
> /api/v1/clusters/c1/configurations/service_config_versions
> {code:title=http://localhost:8080/api/v1/clusters/c1/configurations/service_config_versions?service_name=HDFS&service_config_version=1}
> {
> "href" : "http://localhost:8080/api/v1/clusters/c1/configurations/service_config_versions?service_name=HDFS&service_config_version=1",
> "items" : [
> {
> "href" : "http://localhost:8080/api/v1/clusters/c1/configurations/service_config_versions?service_name=HDFS&service_config_version=1",
> "cluster_name" : "c1",
> "configurations" : [
> {
> "Config" : {
> "cluster_name" : "c1",
> "stack_id" : "HDP-2.2"
> },
> ...
> {code}
> Add a "compatible" flag to the output to indicate whether the version can be "switched-to" when using the UI.
> Reference call:
> /api/v1/clusters/c1?service_config_versions/service_name=HDFS
> {code:title=is_cluster_compatible}
> {
> "Config" : {
> "cluster_name" : "c1",
> "stack_id" : "HDP-2.2"
> },
> "type" : "ssl-client",
> "tag" : "version1",
> "version" : 1,
> "properties" : {
> "ssl.client.truststore.location" : "/etc/security/clientKeys/all.jks",
> "ssl.client.truststore.type" : "jks"
> },
> "properties_attributes" : { }
> },
> {
> "Config" : {
> "cluster_name" : "c1",
> "stack_id" : "HDP-2.2"
> },
> "type" : "ssl-server",
> "tag" : "version1",
> "version" : 1,
> "properties" : {
> "ssl.server.keystore.keypassword" : "bigdata",
> "ssl.server.keystore.location" : "/etc/security/serverKeys/keystore.jks",
> "ssl.server.keystore.password" : "bigdata",
> "ssl.server.keystore.type" : "jks",
> "ssl.server.truststore.location" : "/etc/security/serverKeys/truststore.jks",
> "ssl.server.truststore.type" : "jks"
> },
> "properties_attributes" : { }
> }
> ],
> "createtime" : 1429541186139,
> "group_id" : null,
> "group_name" : "default",
> "hosts" : [ ],
> "is_cluster_compatible" : true,
> "is_current" : true,
> "service_config_version" : 1,
> "service_config_version_note" : "Initial configurations for HDFS",
> "service_name" : "HDFS",
> "user" : "_anonymous"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)