ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-10658) Refactor stack-config's 'property_depended_by' information into a sub-resource
Date Fri, 24 Apr 2015 19:33:38 GMT

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

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

FAILURE: Integrated in Ambari-trunk-Commit #2433 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2433/])
AMBARI-10658. Refactor stack-config's 'property_depended_by' information into a sub-resource
(dsen via srimanth) (sgunturi: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4bd764ed70d7b0b1ce5102cbf521fee0f27022ca)
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackLevelConfigurationResourceProvider.java
* ambari-server/src/main/resources/properties.json
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/StackConfigurationDependencyResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/StackConfigurationResponse.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AbstractResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/StackLevelConfigurationResponse.java
* ambari-server/src/main/java/org/apache/ambari/server/state/PropertyDependencyInfo.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/StackConfigurationDependencyResourceDefinition.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackConfigurationDependencyResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/StackConfigurationDependencyDefinitionTest.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementController.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java
* ambari-server/src/main/resources/stacks/stack_advisor.py
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/StackConfigurationResourceDefinition.java
* ambari-web/app/utils/ajax/ajax.js
* ambari-server/src/main/java/org/apache/ambari/server/controller/StackConfigurationDependencyRequest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/StackConfigurationDependencyResponse.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackConfigurationResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/commands/StackAdvisorCommand.java
* ambari-web/app/mappers/configs/stack_config_properties_mapper.js
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
* ambari-server/src/main/resources/key_properties.json
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/StackConfigurationDefinitionTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/StackConfigurationResourceProviderTest.java


> 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)

Mime
View raw message