<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to add new yarn queue using Rest API / Ambari configs.sh script in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176989#M72851</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Is there any way to add new queue using Yarn rest api ? or Ambari configs.sh script ?&lt;/P&gt;&lt;P&gt;I tried below link but no luck -&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/33578/api-to-manage-yarn-capacity-queue.html" target="_blank"&gt;https://community.hortonworks.com/questions/33578/api-to-manage-yarn-capacity-queue.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;ambari_server&amp;gt;:8080/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/resources/scheduler/configuration" target="_blank"&gt;http://&amp;lt;ambari_server&amp;gt;:8080/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/resources/scheduler/configuration&lt;/A&gt;


[root@node1 ~]#  curl -u admin:admin -H "X-Requested-By:ambari" -iX PUT -d @cs.json &lt;A href="http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic" target="_blank"&gt;http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic&lt;/A&gt;
HTTP/1.1 100 Continue


HTTP/1.1 400 Bad Request
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=6a3wvwuvrhhu3e5258edqhjt;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 217


{
  "status" : 400,
  "message" : "org.apache.ambari.server.controller.spi.UnsupportedPropertyException: The properties [items] specified in the request or predicate are not supported for the resource type Cluster."
&lt;/PRE&gt;&lt;P&gt;When i tried to enable Developer Tools for Ambari View-&amp;gt;Yarn queue manager , I see below call -&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120" target="_blank"&gt;http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120&lt;/A&gt;

=======

{
  "href" : "http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120",
  "items" : [
    {
      "href" : "http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120",
      "tag" : "version1514209101120",
      "type" : "capacity-scheduler",
      "version" : 5,
      "Config" : {
        "cluster_name" : "hdp_mosaic",
        "stack_id" : "HDP-2.5"
      },
      "properties" : {
        "yarn.scheduler.capacity.maximum-am-resource-percent" : "0.2",
        "yarn.scheduler.capacity.maximum-applications" : "10000",
        "yarn.scheduler.capacity.node-locality-delay" : "40",
        "yarn.scheduler.capacity.queue-mappings-override.enable" : "false",
        "yarn.scheduler.capacity.resource-calculator" : "org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator",
        "yarn.scheduler.capacity.root.MosaiqQueue.acl_administer_queue" : "*",
        "yarn.scheduler.capacity.root.MosaiqQueue.acl_submit_applications" : "*",
        "yarn.scheduler.capacity.root.MosaiqQueue.capacity" : "90",
        "yarn.scheduler.capacity.root.MosaiqQueue.maximum-capacity" : "90",
        "yarn.scheduler.capacity.root.MosaiqQueue.minimum-user-limit-percent" : "100",
        "yarn.scheduler.capacity.root.MosaiqQueue.ordering-policy" : "fifo",
        "yarn.scheduler.capacity.root.MosaiqQueue.state" : "RUNNING",
        "yarn.scheduler.capacity.root.MosaiqQueue.user-limit-factor" : "1",
        "yarn.scheduler.capacity.root.accessible-node-labels" : "*",
        "yarn.scheduler.capacity.root.acl_administer_queue" : "*",
        "yarn.scheduler.capacity.root.capacity" : "100",
        "yarn.scheduler.capacity.root.default.acl_submit_applications" : "*",
        "yarn.scheduler.capacity.root.default.capacity" : "10",
        "yarn.scheduler.capacity.root.default.maximum-capacity" : "100",
        "yarn.scheduler.capacity.root.default.state" : "RUNNING",
        "yarn.scheduler.capacity.root.default.user-limit-factor" : "1",
        "yarn.scheduler.capacity.root.queues" : "MosaiqQueue,default"
      }
    }
  ]
}&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Dec 2017 21:31:34 GMT</pubDate>
    <dc:creator>sagarshimpi</dc:creator>
    <dc:date>2017-12-25T21:31:34Z</dc:date>
    <item>
      <title>How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176989#M72851</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Is there any way to add new queue using Yarn rest api ? or Ambari configs.sh script ?&lt;/P&gt;&lt;P&gt;I tried below link but no luck -&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/33578/api-to-manage-yarn-capacity-queue.html" target="_blank"&gt;https://community.hortonworks.com/questions/33578/api-to-manage-yarn-capacity-queue.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;ambari_server&amp;gt;:8080/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/resources/scheduler/configuration" target="_blank"&gt;http://&amp;lt;ambari_server&amp;gt;:8080/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/resources/scheduler/configuration&lt;/A&gt;


[root@node1 ~]#  curl -u admin:admin -H "X-Requested-By:ambari" -iX PUT -d @cs.json &lt;A href="http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic" target="_blank"&gt;http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic&lt;/A&gt;
HTTP/1.1 100 Continue


HTTP/1.1 400 Bad Request
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=6a3wvwuvrhhu3e5258edqhjt;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 217


{
  "status" : 400,
  "message" : "org.apache.ambari.server.controller.spi.UnsupportedPropertyException: The properties [items] specified in the request or predicate are not supported for the resource type Cluster."
&lt;/PRE&gt;&lt;P&gt;When i tried to enable Developer Tools for Ambari View-&amp;gt;Yarn queue manager , I see below call -&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120" target="_blank"&gt;http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120&lt;/A&gt;

=======

{
  "href" : "http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120",
  "items" : [
    {
      "href" : "http://192.168.56.111:8080/api/v1/clusters/hdp_mosaic/configurations?type=capacity-scheduler&amp;amp;tag=version1514209101120",
      "tag" : "version1514209101120",
      "type" : "capacity-scheduler",
      "version" : 5,
      "Config" : {
        "cluster_name" : "hdp_mosaic",
        "stack_id" : "HDP-2.5"
      },
      "properties" : {
        "yarn.scheduler.capacity.maximum-am-resource-percent" : "0.2",
        "yarn.scheduler.capacity.maximum-applications" : "10000",
        "yarn.scheduler.capacity.node-locality-delay" : "40",
        "yarn.scheduler.capacity.queue-mappings-override.enable" : "false",
        "yarn.scheduler.capacity.resource-calculator" : "org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator",
        "yarn.scheduler.capacity.root.MosaiqQueue.acl_administer_queue" : "*",
        "yarn.scheduler.capacity.root.MosaiqQueue.acl_submit_applications" : "*",
        "yarn.scheduler.capacity.root.MosaiqQueue.capacity" : "90",
        "yarn.scheduler.capacity.root.MosaiqQueue.maximum-capacity" : "90",
        "yarn.scheduler.capacity.root.MosaiqQueue.minimum-user-limit-percent" : "100",
        "yarn.scheduler.capacity.root.MosaiqQueue.ordering-policy" : "fifo",
        "yarn.scheduler.capacity.root.MosaiqQueue.state" : "RUNNING",
        "yarn.scheduler.capacity.root.MosaiqQueue.user-limit-factor" : "1",
        "yarn.scheduler.capacity.root.accessible-node-labels" : "*",
        "yarn.scheduler.capacity.root.acl_administer_queue" : "*",
        "yarn.scheduler.capacity.root.capacity" : "100",
        "yarn.scheduler.capacity.root.default.acl_submit_applications" : "*",
        "yarn.scheduler.capacity.root.default.capacity" : "10",
        "yarn.scheduler.capacity.root.default.maximum-capacity" : "100",
        "yarn.scheduler.capacity.root.default.state" : "RUNNING",
        "yarn.scheduler.capacity.root.default.user-limit-factor" : "1",
        "yarn.scheduler.capacity.root.queues" : "MosaiqQueue,default"
      }
    }
  ]
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Dec 2017 21:31:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176989#M72851</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2017-12-25T21:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176990#M72852</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;, YARN does not have REST api to add a queue. We need to change the capacity-scheduler.xml and refresh yarn queues using "yarn rmadmin -refreshQueues" command. The same is done by the Ambari Server. The REST api you have shared is from Browser to Ambari Server, which internally calls the queue refresh command.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:10:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176990#M72852</guid>
      <dc:creator>pjoseph</dc:creator>
      <dc:date>2018-01-09T19:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176991#M72853</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10379/pjoseph.html" nodeid="10379"&gt;@pjoseph&lt;/A&gt;&lt;P&gt;I was able to achieve this using ambari api updating service configs.&lt;/P&gt;&lt;P&gt;Below is the working command - I have added Queue name - "MaxiqQueue"&lt;/P&gt;&lt;PRE&gt; curl -u $ambari_user:$ambari_password -H 'X-Requested-By:admin' -X PUT "http://$ambari_server_host:8080/api/v1/clusters/$CLUSTER_NAME" -d '{
  "Clusters": {
    "desired_config": {
      "type": "capacity-scheduler",
      "tag": "version'$date'",
      "properties": {
            "yarn.scheduler.capacity.maximum-am-resource-percent" : "0.2",
            "yarn.scheduler.capacity.maximum-applications" : "10000",
            "yarn.scheduler.capacity.node-locality-delay" : "40",
            "yarn.scheduler.capacity.queue-mappings-override.enable" : "false",
            "yarn.scheduler.capacity.resource-calculator" : "org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator",
            "yarn.scheduler.capacity.root.MaxiqQueue.acl_administer_queue" : "*",
            "yarn.scheduler.capacity.root.MaxiqQueue.acl_submit_applications" : "*",
            "yarn.scheduler.capacity.root.MaxiqQueue.capacity" : "90",
            "yarn.scheduler.capacity.root.MaxiqQueue.maximum-capacity" : "90",
            "yarn.scheduler.capacity.root.MaxiqQueue.minimum-user-limit-percent" : "100",
            "yarn.scheduler.capacity.root.MaxiqQueue.ordering-policy" : "fifo",
            "yarn.scheduler.capacity.root.MaxiqQueue.state" : "RUNNING",
            "yarn.scheduler.capacity.root.MaxiqQueue.user-limit-factor" : "1",
            "yarn.scheduler.capacity.root.accessible-node-labels" : "*",
            "yarn.scheduler.capacity.root.acl_administer_queue" : "yarn",
            "yarn.scheduler.capacity.root.capacity" : "100",
            "yarn.scheduler.capacity.root.default.acl_administer_queue" : "yarn",
            "yarn.scheduler.capacity.root.default.acl_submit_applications" : "yarn",
            "yarn.scheduler.capacity.root.default.capacity" : "10",
            "yarn.scheduler.capacity.root.default.maximum-capacity" : "100",
            "yarn.scheduler.capacity.root.default.state" : "RUNNING",
            "yarn.scheduler.capacity.root.default.user-limit-factor" : "1",
            "yarn.scheduler.capacity.root.queues" : "MaxiqQueue,default"
      }
    }
  }
}'
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:22:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176991#M72853</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2018-03-01T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176992#M72854</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X PUT $ambari_server/api/v1/clusters/engsndbx -d '[{"Clusters":{
&amp;gt;   "desired_config":[{
&amp;gt;     "type":"capacity-scheduler",
&amp;gt;     "tag":"version1519845495539",
&amp;gt;     "properties":{
&amp;gt; "yarn.scheduler.capacity.maximum-am-resource-percent":"0.4",
&amp;gt; "yarn.scheduler.capacity.maximum-applications":"10000",
&amp;gt; "yarn.scheduler.capacity.node-locality-delay":"40",
&amp;gt; "yarn.scheduler.capacity.resource-calculator": "org.apache.hadoop.yarn.util.resource.DominantResourceCalculator",
&amp;gt; "yarn.scheduler.capacity.queue-mappings-override.enable":"false",
&amp;gt; "yarn.scheduler.capacity.root.acl_administer_queue": "*",
&amp;gt; "yarn.scheduler.capacity.root.capacity":"100",
&amp;gt; "yarn.scheduler.capacity.root.queues": "Hive",
&amp;gt; "yarn.scheduler.capacity.root.accessible-node-labels": "*",
&amp;gt; "yarn.scheduler.capacity.root.Hive.acl_submit_applications": "*",
&amp;gt; "yarn.scheduler.capacity.root.Hive.maximum-capacity":"100",
&amp;gt; "yarn.scheduler.capacity.root.Hive.user-limit-factor":"4",
&amp;gt; "yarn.scheduler.capacity.root.Hive.state": "RUNNING",
&amp;gt; "yarn.scheduler.capacity.root.Hive.capacity":"100"},
&amp;gt; "service_config_version_note":"New config version"}]}}]' &lt;/P&gt;&lt;P&gt;from above rest api I would like to change the &lt;STRONG&gt;"yarn.scheduler.capacity.root.Hive.user-limit-factor":"4", &lt;/STRONG&gt;but ending upwith error :&lt;/P&gt;&lt;P&gt;{ "status" : 500, "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Configuration with tag 'version1519845495539' exists for 'capacity-scheduler'"  &lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:14:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176992#M72854</guid>
      <dc:creator>Jasthi</dc:creator>
      <dc:date>2018-03-02T01:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176993#M72855</link>
      <description>&lt;P&gt; Sorry I would like to update this &lt;STRONG&gt;"yarn.scheduler.capacity.root.Hive.user-limit-factor":"4&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176993#M72855</guid>
      <dc:creator>Jasthi</dc:creator>
      <dc:date>2018-03-02T01:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176994#M72856</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/47409/jvnath77.html" nodeid="47409"&gt;@Veerendra Nath  Jasthi&lt;/A&gt;&lt;P&gt;From the above error it seems the issue is with tag "versionxxxxx".&lt;/P&gt;&lt;PRE&gt;tag 'version1519845495539' exists for 'capacity-scheduler'"&lt;/PRE&gt;&lt;P&gt;Just update "tag" "version1519845495539" in curl command to some random number eg. version151984546666&lt;/P&gt;&lt;P&gt;Please retry and let me know if still any issue.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 04:28:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176994#M72856</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2018-03-02T04:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176995#M72857</link>
      <description>&lt;P&gt;Thank you so much it worked.....&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 04:31:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176995#M72857</guid>
      <dc:creator>Jasthi</dc:creator>
      <dc:date>2018-03-02T04:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176996#M72858</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Is it working for you? I tried the same thing, I am able to see the new queue configuration in Ambari queue manager UI, but need to manually click on  "Save and refresh". &lt;/P&gt;&lt;P&gt;I see following warning in ambari server log "AbstractResourceProvider:506 - Can not determine request operation level. Operation level property should be specified for this request.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 01:16:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176996#M72858</guid>
      <dc:creator>sudhavasiraju</dc:creator>
      <dc:date>2018-03-17T01:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176997#M72859</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/66219/sudhavasiraju.html"&gt;Sudhakara Vasiraju&lt;/A&gt; its working for me with out refreshing manually by calling below rest api....&lt;/P&gt;&lt;P&gt;curl 
-u admin:admin -H 'Content-Type:application/json' -H 'X-Requested-By:ambari' -iX 
PUT -d '{"save": "true"}' 
_http://localhost:8080/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/resources/scheduler/configuration/saveAndRefresh&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 01:22:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176997#M72859</guid>
      <dc:creator>Jasthi</dc:creator>
      <dc:date>2018-03-17T01:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176998#M72860</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47409/jvnath77.html" nodeid="47409"&gt;@Veerendra Nath  Jasthi&lt;/A&gt;   As I am adding queues programmatically, I am hesitant to call API on views ... I am calling refresh queues api as follows, for which I need to manually do the save and refresh.&lt;/P&gt;&lt;PRE&gt;curl -u uname:pwd -H "X-Requested-By:ambari" -iX POST -d '{
  "RequestInfo" : {
    "command" : "REFRESHQUEUES",
    "context" : "Refresh YARN Capacity Scheduler",
    "operation_level" : {
        "level": "HOST_COMPONENT",
        "cluster_name": "&amp;lt;clustername&amp;gt;"
    },
    "parameters/forceRefreshConfigTags":"capacity-scheduler"
  },
  "Requests/resource_filters": [{
    "service_name" : "YARN",
    "component_name" : "RESOURCEMANAGER",
    "hosts" : "&amp;lt;hostname&amp;gt;"
  }]
}' &lt;A href="http://&amp;lt;hostip&amp;gt;:&amp;lt;port&amp;gt;/api/v1/clusters/&amp;lt;clustername&amp;gt;/requests" target="_blank"&gt;http://&amp;lt;hostip&amp;gt;:&amp;lt;port&amp;gt;/api/v1/clusters/&amp;lt;clustername&amp;gt;/requests&lt;/A&gt;
 &lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Mar 2018 02:56:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176998#M72860</guid>
      <dc:creator>sudhavasiraju</dc:creator>
      <dc:date>2018-03-17T02:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add new yarn queue using Rest API / Ambari configs.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176999#M72861</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://community.hortonworks.com/questions/155903/how-to-add-new-yarn-queue-using-rest-api-ambari-co.html?childToView=177862#"&gt;@Veerendra Nath Jasthi&lt;/A&gt; ..&lt;/P&gt;&lt;P&gt;While adding queues I missed the property "yarn.scheduler.capacity.root.accessible-node-labels.&amp;lt;newnodelabelname&amp;gt;.capacity" property which was causing the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 21:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-new-yarn-queue-using-Rest-API-Ambari-configs-sh/m-p/176999#M72861</guid>
      <dc:creator>sudhavasiraju</dc:creator>
      <dc:date>2018-03-20T21:58:10Z</dc:date>
    </item>
  </channel>
</rss>

