You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jeff Sposetti (JIRA)" <ji...@apache.org> on 2014/06/09 17:14:02 UTC

[jira] [Updated] (AMBARI-6059) Add refreshQueues custom command to YARN service

     [ https://issues.apache.org/jira/browse/AMBARI-6059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Sposetti updated AMBARI-6059:
----------------------------------

    Description: 
Call refreshqueues from the REST API (replace resource.manager.host and YourClusterName). And be sure to include header "X-Requested-By" : "ambari" and set authentication.

{code}
POST
/api/v1/clusters/YourClusterName/requests/

{
  "RequestInfo" : {
    "command" : "REFRESHQUEUES",
    "context" : "Refresh YARN Capacity Scheduler"
  },
  "Requests/resource_filters": [{
    "service_name" : "YARN",
    "component_name" : "RESOURCEMANAGER",
    "hosts" : "resource.manager.host"
  }]
}
{code}


> Add refreshQueues custom command to YARN service
> ------------------------------------------------
>
>                 Key: AMBARI-6059
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6059
>             Project: Ambari
>          Issue Type: Improvement
>    Affects Versions: 1.6.1
>            Reporter: Jeff Sposetti
>            Assignee: Jeff Sposetti
>
> Call refreshqueues from the REST API (replace resource.manager.host and YourClusterName). And be sure to include header "X-Requested-By" : "ambari" and set authentication.
> {code}
> POST
> /api/v1/clusters/YourClusterName/requests/
> {
>   "RequestInfo" : {
>     "command" : "REFRESHQUEUES",
>     "context" : "Refresh YARN Capacity Scheduler"
>   },
>   "Requests/resource_filters": [{
>     "service_name" : "YARN",
>     "component_name" : "RESOURCEMANAGER",
>     "hosts" : "resource.manager.host"
>   }]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)