ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yusaku Sako <yus...@hortonworks.com>
Subject Re: change config and use rmadmin
Date Thu, 14 Aug 2014 18:57:58 GMT
Krisz,

The feature to refresh queues via REST/UI is in trunk for the upcoming
1.7.0 release.

Try:
POST on /api/v1/clusters/<cluster-name>/requests
{"RequestInfo":{"context":"Refresh YARN Capacity
Scheduler","command":"REFRESHQUEUES","parameters/forceRefreshConfigTags":"capacity-scheduler"},"Requests/resource_filters":[{"service_name":"YARN","component_name":"RESOURCEMANAGER","hosts":"rm-host.apache.org"}]}

Yusaku


On Thu, Aug 14, 2014 at 8:41 AM, Krisztian Horvath
<krisztian.horvath@sequenceiq.com> wrote:
> Hi eveyone,
>
> I ran into an issue when I tried to change the capacity-scheduler's configuration by
sending a PUT request to api/v1/clusters/mycluster
> {
>   "Clusters": {
>     "desired_config": {
>       "type": "capacity-scheduler",
>       "tag": "version1407951570932",
>       "properties": {..}
>     }
>   }
> }
> and the actual capacity-scheduler.xml didn’t change so yarn rmadmin -refreshQueues
didn’t have affect. Is it possible to do this without restart? As far as I know Ambari determines
whether restart is needed or not based on the actual and desired config. Thank you in advance.
>
> Br,
> Krisz
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Mime
View raw message