You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2015/04/20 21:43:59 UTC
[jira] [Created] (AMBARI-10610) Expose Stack to Configuration
Endpoints
Jonathan Hurley created AMBARI-10610:
----------------------------------------
Summary: 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)