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

Srimanth Gunturi commented on AMBARI-10589:
-------------------------------------------

Tests pass locally
{code}
----------------------------------------------------------------------
Ran 232 tests in 6.695s

OK
----------------------------------------------------------------------
Total run:695
Total errors:0
Total failures:0
OK
log
log
StackAdvisor implementation for stack HDP1, version 2.0.6 was not found
Returning DefaultStackAdvisor implementation
StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded
StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded
Returning XYZ101StackAdvisor implementation
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42:46.443s
[INFO] Finished at: Sun Apr 19 19:40:10 PDT 2015
[INFO] Final Memory: 31M/311M
[INFO] ------------------------------------------------------------------------
{code}

+1 for patch. Verified on live cluster.

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

Reply via email to