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