You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2015/04/20 03:56:58 UTC
[jira] [Updated] (AMBARI-10589) BE: Stack advisor endpoints should
support config-groups specific calls
[ https://issues.apache.org/jira/browse/AMBARI-10589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Srimanth Gunturi updated AMBARI-10589:
--------------------------------------
Attachment: AMBARI-10589.patch
> 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)