[ 
https://issues.apache.org/jira/browse/AMBARI-10658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14511967#comment-14511967
 ] 

Hudson commented on AMBARI-10658:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #2436 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/2436/])
AMBARI-10658. Refactor stack-config's 'property_depended_by' information into a 
sub-resource - test fixes (dsen via srimanth) (sgunturi: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ac96799834cbc500d42160c64be8db269af3bcc1)
* ambari-web/test/mappers/configs/stack_config_properties_mapper_test.js
* ambari-server/src/test/python/TestStackAdvisor.py


> 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
>
>         Attachments: AMBARI-10658.patch
>
>
> 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)

Reply via email to