<?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 adding resource pool using Cloudera Manager REST api in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/31913#M7338</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to add resource pool using the REST api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm standing up a cluster using cloudera director and want to run a post script to configure, including resource pool weighting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any documentation for this in the API docs, is this possible?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:41:03 GMT</pubDate>
    <dc:creator>owenrumney</dc:creator>
    <dc:date>2022-09-16T09:41:03Z</dc:date>
    <item>
      <title>adding resource pool using Cloudera Manager REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/31913#M7338</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to add resource pool using the REST api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm standing up a cluster using cloudera director and want to run a post script to configure, including resource pool weighting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any documentation for this in the API docs, is this possible?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:41:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/31913#M7338</guid>
      <dc:creator>owenrumney</dc:creator>
      <dc:date>2022-09-16T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: adding resource pool using Cloudera Manager REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/32245#M7339</link>
      <description>You can edit this via API just as you would with the Pools API, by using JSON edits to the existing property the UI itself writes into.&lt;BR /&gt;&lt;BR /&gt;See &lt;A href="https://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_props_cdh540_yarn_mr2included_.html#concept_5v9_49n_yk_unique_1__table_kqj_eb1_wk_unique_1," target="_blank"&gt;https://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_props_cdh540_yarn_mr2included_.html#concept_5v9_49n_yk_unique_1__table_kqj_eb1_wk_unique_1,&lt;/A&gt; specifically the entry with name "Fair Scheduler Allocations" and description "JSON representation of all the configurations that the Fair Scheduler can take on across all schedules. Typically edited using the Pools configuration UI.". Use &lt;A href="http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_services_-serviceName-_config.html" target="_blank"&gt;http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_services_-serviceName-_config.html&lt;/A&gt; to update this like any other config.&lt;BR /&gt;&lt;BR /&gt;Subsequently, call &lt;A href="http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_commands_poolsRefresh.html," target="_blank"&gt;http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_commands_poolsRefresh.html,&lt;/A&gt; to update the pool configs (if you use Dynamic Resource Pools).</description>
      <pubDate>Thu, 24 Sep 2015 10:11:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/32245#M7339</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-09-24T10:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: adding resource pool using Cloudera Manager REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/85806#M7340</link>
      <description>&lt;P&gt;Thank you for answering the question. I am able to get a response back. But how can I HTTP PUT the below object to create a new resource pool? Would you happen to have a CURL example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{ 'minSharePreemptionTimeout': None, 'name': 'username', 'schedulingPolicy': 'fair', 'fairSharePreemptionTimeout': None, 'queues': [], 'aclAdministerApps': None, 'fairSharePreemptionThreshold': None, 'allowPreemptionFrom': None, 'aclSubmitApps': 'scrubbed', 'schedulablePropertiesList': [ { 'maxAMShare': None, 'weight': 1.0, 'impalaDefaultQueryMemLimit': None, 'maxRunningApps': None, 'impalaQueueTimeout': None, 'maxChildResources': None, 'impalaMaxQueuedQueries': None, 'impalaMaxRunningQueries': None, 'scheduleName': 'default', 'maxResources': {'vcores': 60, 'memory': 131072}, 'impalaDefaultQueryOptions': None, 'impalaMaxMemory': None, 'minResources': {'vcores': 25, 'memory': 32768} } ], 'type': None }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I insert this into the response and PUT it back to the endpoint, I get a 200 status code. However the resource pool is not actually created nor visible in Web UI.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 09:08:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/adding-resource-pool-using-Cloudera-Manager-REST-api/m-p/85806#M7340</guid>
      <dc:creator>wasitaratisaw</dc:creator>
      <dc:date>2019-02-02T09:08:05Z</dc:date>
    </item>
  </channel>
</rss>

