> On Дек. 16, 2016, 3:26 п.п., Jonathan Hurley wrote:
> > ambari-agent/src/main/python/ambari_agent/ActionQueue.py, lines 430-439
> > <https://reviews.apache.org/r/54791/diff/1/?file=1586488#file1586488line430>
> >
> >     Where in the Ambari Server code does it send down 
> > `forceRefreshConfigTags` - I couldn't find any spot where this is injected 
> > into the parameters being set on the command for the agent.

It's a parameter for REFRESHQUEUE command:

from ConfigurationService.java :
  private static final String REFRESH_RM_REQUEST_DATA =
      "{\n" +
      "  \"RequestInfo\" : {\n" +
      "    \"command\" : \"REFRESHQUEUES\",\n" +
      "    \"context\" : \"Refresh YARN Capacity Scheduler\"\n" +
      "    \"parameters/forceRefreshConfigTags\" : \"capacity-scheduler\"\n" +
      "  },\n" +
      "  \"Requests/resource_filters\": [{\n" +
      "    \"service_name\" : \"YARN\",\n" +
      "    \"component_name\" : \"RESOURCEMANAGER\",\n" +
      "    \"hosts\" : \"%s\"\n" +
      "  }]\n" +
      "}";

All the parameters from the command are sent to ambari-agent from the server 
side:
  @SerializedName("commandParams")
  private Map<String, String> commandParams = new HashMap<String, String>();

In AmbariManagementControllerImpl.createHostAction():
    execCmd.setCommandParams(commandParams);


- Dmytro


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54791/#review159449
-----------------------------------------------------------


On Дек. 15, 2016, 5:51 п.п., Dmytro Sen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54791/
> -----------------------------------------------------------
> 
> (Updated Дек. 15, 2016, 5:51 п.п.)
> 
> 
> Review request for Ambari, Aravindan Vijayan, Jonathan Hurley, Sid Wagle, and 
> Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-19216
>     https://issues.apache.org/jira/browse/AMBARI-19216
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Ran into this while troubleshooting a yarn issue.
> 1. Go to yarn view, and change any value in one of your queues.
> 2. Save and Refresh queues
> 3 Go to Yarn service. It now says RM needs to be restarted (**This is false, 
> and did not flag in 2.2.x versions of Ambari**)
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/python/ambari_agent/ActionQueue.py cb4fcb9 
> 
> Diff: https://reviews.apache.org/r/54791/diff/
> 
> 
> Testing
> -------
> 
> Unit tests passed
> 
> 
> Thanks,
> 
> Dmytro Sen
> 
>

Reply via email to