[
https://issues.apache.org/jira/browse/AMBARI-10589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503418#comment-14503418
]
Hudson commented on AMBARI-10589:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2374 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2374/])
AMBARI-10589. BE: Stack advisor endpoints should support config-groups specific
calls - fixes (dsen via srimanth) (sgunturi:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c230d0f527ce8ef9f211054559eaa060ee28971b)
* ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py
*
ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/recommendations/RecommendationResponse.java
*
ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/commands/StackAdvisorCommand.java
* ambari-server/src/test/python/TestStackAdvisor.py
* ambari-server/src/main/resources/properties.json
*
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/StackAdvisorResourceProvider.java
*
ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/StackAdvisorRequest.java
*
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RecommendationResourceProvider.java
* ambari-web/app/config.js
* ambari-server/src/main/resources/stacks/stack_advisor.py
* ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
> BE: Stack advisor endpoints should support config-groups specific calls
> -----------------------------------------------------------------------
>
> Key: AMBARI-10589
> URL: https://issues.apache.org/jira/browse/AMBARI-10589
> Project: Ambari
> Issue Type: Task
> Components: contrib
> Affects Versions: 2.1.0
> Reporter: Srimanth Gunturi
> Assignee: Dmytro Sen
> Fix For: 2.1.0
>
> Attachments: AMBARI-10589.patch
>
>
> The {{/recommendations}} and {{/validations}} endpoints should support
> actions "configurations", "configuration-dependencies" and "component-layout"
> for config-groups. This involves making the calculations for defaults and
> validations, using only the hosts for that config-group.
> {code}
> "changed_configurations": [
> {
> "type": "yarn-site",
> "name": "yarn.scheduler.minimum-allocation-mb"
> }
> ],
> "recommendations": {
> "config_groups": [
> {
> "configurations": [
> {
> "yarn-site": {
> "properties": {
> "yarn.scheduler.minimum-allocation-mb": "1024"
> }
> }
> }
> ],
> "hosts": [
> "tick-2.c.pramod-thangali.internal",
> "tick-3.c.pramod-thangali.internal"
> ]
> }
> ],
> "blueprint": { ... }
> "blueprint_cluster_binding": { ... }
> {code}
> API has to check the presence of {{config_groups}} in the "recommendations"
> bag, and use only those hosts for calculations. The response would return the
> changes inside the same {{config_groups}} object as written in document. The
> inner property {{configurations}} contains changes local to the config-group.
> The inner property {{dependent_configurations}} contains changes outside of
> the config-group.
> {code}
> "recommendations": {
> "config_groups": [
> {
> "configurations": [
> {
> "yarn-site": {
> "properties": {
> "yarn.scheduler.minimum-allocation-mb": "1024"
> },
> "property_attributes": {
> "yarn.scheduler.minimum-allocation-mb": {
> "max": "2048"
> }
> }
> }
> }
> ],
> "dependent_configurations": [
> {
> "mapred-site": {
> "properties": {
> "mapreduce.map.memory.mb": "975",
> "mapreduce.reduce.memory.mb": "1950",
> "yarn.app.mapreduce.am.command-opts": "-Xmx780m
> -Dhdp.version=${hdp.version}",
> "mapreduce.reduce.java.opts": "-Xmx1560m",
> "yarn.app.mapreduce.am.resource.mb": "975",
> "mapreduce.map.java.opts": "-Xmx780m",
> "mapreduce.task.io.sort.mb": "682"
> },
> "property_attributes": {
> "mapreduce.reduce.memory.mb": {
> "max": "2048",
> "min": "975"
> },
> "mapreduce.map.memory.mb": {
> "max": "2048",
> "min": "975"
> },
> "yarn.app.mapreduce.am.resource.mb": {
> "max": "2048",
> "min": "975"
> }
> }
> }
> }
> ],
> "hosts": [
> "tick-2.c.pramod-thangali.internal",
> "tick-3.c.pramod-thangali.internal"
> ]
> }
> ],
> "blueprint": { ... }
> "blueprint_cluster_binding": { ... }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)