You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmytro Sen (JIRA)" <ji...@apache.org> on 2015/04/22 16:30:59 UTC

[jira] [Created] (AMBARI-10658) Refactor stack-config's 'property_depended_by' information into a sub-resource

Dmytro Sen created AMBARI-10658:
-----------------------------------

             Summary: Refactor stack-config's 'property_depended_by' information into a sub-resource
                 Key: AMBARI-10658
                 URL: https://issues.apache.org/jira/browse/AMBARI-10658
             Project: Ambari
          Issue Type: Task
          Components: ambari-server
    Affects Versions: 2.1.0
            Reporter: Dmytro Sen
            Assignee: Dmytro Sen
            Priority: Critical
             Fix For: 2.1.0


Currently the {{property_depended_by}} information for a stack-configuration is calculated automatically. This has to be changed so that the derived information can be got through a sub-resource called dependencies. This will contain the same information as the configuration does currently.

So a GET to [http://c6401:8080/api/v1/stacks/HDP/versions/2.2/services/YARN/configurations/yarn.scheduler.maximum-allocation-mb/dependencies] will give
{code}
{
    "property_depended_by" : [
      {
        "type" : "mapred-site",
        "name" : "yarn.app.mapreduce.am.resource.mb"
      },
      {
        "type" : "mapred-site",
        "name" : "mapreduce.map.memory.mb"
      },
      {
        "type" : "mapred-site",
        "name" : "mapreduce.reduce.memory.mb"
      }
    ]
}
{code}


Additionally there should be a single API to get all the configurations, and all their depended_by relationship sub-resources. Currently the UI calls: 
{code}
http://c6401:8080/api/v1/stacks/HDP/versions/2.3/services?StackServices/service_name.in(HDFS,MAPREDUCE2,YARN,TEZ,HIVE,HBASE,PIG,ZOOKEEPER)
&fields=configurations/*,StackServices/config_types/*
{code}
We should have something very similar like
{code}
http://c6401:8080/api/v1/stacks/HDP/versions/2.3/services?StackServices/service_name.in(HDFS,MAPREDUCE2,YARN,TEZ,HIVE,HBASE,PIG,ZOOKEEPER)
&fields=configurations/*,configurations/dependencies,StackServices/config_types/*
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)