You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Krisztian Horvath <kr...@sequenceiq.com> on 2014/08/14 17:41:05 UTC
change config and use rmadmin
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
Re: change config and use rmadmin
Posted by Yusaku Sako <yu...@hortonworks.com>.
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
<kr...@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.