ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5553) Add dependency related information to stacks in the REST API
Date Wed, 23 Apr 2014 22:52:17 GMT
John Speidel created AMBARI-5553:
------------------------------------

             Summary: Add dependency related information to stacks in the REST API
                 Key: AMBARI-5553
                 URL: https://issues.apache.org/jira/browse/AMBARI-5553
             Project: Ambari
          Issue Type: New Feature
            Reporter: John Speidel
            Assignee: John Speidel
             Fix For: 1.6.0


Added dependency related information to stacks in the REST API.  This information describes
dependencies between components which are part of a stack.  

A new dependencies resources will be added as a child to the stacksServices/serviceComponent
(soon to be renamed to services/component) resource.

For example:
GET http://172.18.192.3:8080/api/v1/stacks/HDP/versions/1.3.3/stackServices/HBASE/serviceComponents/HBASE_MASTER?fields=dependencies/*

{code}
{
  "href" : "http://172.18.192.3:8080/api/v1/stacks/HDP/versions/1.3.3/stackServices/HBASE/serviceComponents/HBASE_MASTER?fields=dependencies/*",
  "StackServiceComponents" : {
    "component_name" : "HBASE_MASTER",
    "service_name" : "HBASE",
    "stack_name" : "HDP",
    "stack_version" : "1.3.3"
  },
  "dependencies" : [
    {
      "href" : "http://172.18.192.3:8080/api/v1/stacks/HDP/versions/1.3.3/stackServices/HBASE/serviceComponents/HBASE_MASTER/dependencies/HDFS_CLIENT",
      "Dependencies" : {
        "component_name" : "HDFS_CLIENT",
        "dependent_component_name" : "HBASE_MASTER",
        "dependent_service_name" : "HBASE",
        "scope" : "host",
        "service_name" : "HDFS",
        "stack_name" : "HDP",
        "stack_version" : "1.3.3"
      },
      "auto_deploy" : {
        "enabled" : true
      }
    },
    {
      "href" : "http://172.18.192.3:8080/api/v1/stacks/HDP/versions/1.3.3/stackServices/HBASE/serviceComponents/HBASE_MASTER/dependencies/ZOOKEEPER_SERVER",
      "Dependencies" : {
        "component_name" : "ZOOKEEPER_SERVER",
        "dependent_component_name" : "HBASE_MASTER",
        "dependent_service_name" : "HBASE",
        "scope" : "cluster",
        "service_name" : "ZOOKEEPER",
        "stack_name" : "HDP",
        "stack_version" : "1.3.3"
      },
      "auto_deploy" : {
        "enabled" : true,
        "location" : "HBASE/HBASE_MASTER"
      }
    }
  ]
}
{code}





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

Mime
View raw message