Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5553

Add dependency related information to stacks in the REST API

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None

    Description

      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/*

      {
        "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"
            }
          }
        ]
      }
      

      Attachments

        Activity

          People

            jspeidel John Speidel
            jspeidel John Speidel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: