<?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 Re: updating oozie-site.xml via REST api in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27932#M5905</link>
    <description>&lt;P&gt;I manage to create python script to change the configuration.&lt;/P&gt;&lt;P&gt;here is an example:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://linuxlabrat.wordpress.com/2015/05/26/updating-cdh-configuration-using-python-and-rest-apis/"&gt;https://linuxlabrat.wordpress.com/2015/05/26/updating-cdh-configuration-using-python-and-rest-apis/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2015 11:59:16 GMT</pubDate>
    <dc:creator>doronve</dc:creator>
    <dc:date>2015-05-26T11:59:16Z</dc:date>
    <item>
      <title>updating oozie-site.xml via REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27384#M5902</link>
      <description>&lt;P&gt;Can I update oozie-site.xml using REST api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We added our own external function to oozie.&lt;/P&gt;&lt;P&gt;After each installation we need to go manually and change things in oozie via the CM web&amp;nbsp;interface:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Oozie Server Configuration Safety Valve for oozie-site.xml - add two properties&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;oozie.service.ActionService.executor.ext.classes - add additional value&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;oozie SchemaService Workflow Extension Schemas - add additional value&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;i'd like to be able to do this via scripting of any kind.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So far i could not find such an option - neither in CM REST API (&lt;A target="_blank" href="http://cloudera.github.io/cm_api/apidocs/v10/index.html)"&gt;http://cloudera.github.io/cm_api/apidocs/v10/index.html)&lt;/A&gt; nor OOZIE REST API (&lt;A target="_blank" href="http://archive.cloudera.com/cdh4/cdh/4/oozie/WebServicesAPI.html)"&gt;http://archive.cloudera.com/cdh4/cdh/4/oozie/WebServicesAPI.html)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Doron&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:28:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27384#M5902</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2022-09-16T09:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: updating oozie-site.xml via REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27404#M5903</link>
      <description>Hi Doron,&lt;BR /&gt;&lt;BR /&gt;All configuration properties are in the CM REST API.&lt;BR /&gt;&lt;BR /&gt;See the tutorials about using our rest API here:&lt;BR /&gt;&lt;A target="_blank" href="http://cloudera.github.io/cm_api/"&gt;http://cloudera.github.io/cm_api/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These include tutorials about how to read and set config, such as:&lt;BR /&gt;&lt;A target="_blank" href="http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles"&gt;http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Using the rest endpoint for configs directly is documented on the page you linked. There's a different endpoint for each concept (host, service, role config group, role, etc). The one you'd want for Oozie Server role config group is:&lt;BR /&gt;&lt;A target="_blank" href="http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_services_-serviceName-_roleConfigGroups_-roleConfigGroupName-_config.html"&gt;http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_services_-serviceName-_roleConfigGroups_-roleConfigGroupName-_config.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Theses configs have the keys oozie_config_safety_valve, oozie_executor_extension_classes, and oozie_workflow_extension_schemas.&lt;BR /&gt;&lt;BR /&gt;The most reliable way to identify config keys is to query your live CM via the API, using the option ?view=FULL, as described in the first link above. Documentation for config values is also available here (assuming CDH5.4, you can click other links for other versions):&lt;BR /&gt;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_props_cdh540_oozie.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_props_cdh540_oozie.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Darren</description>
      <pubDate>Wed, 13 May 2015 17:33:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27404#M5903</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2015-05-13T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: updating oozie-site.xml via REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27572#M5904</link>
      <description>Hi Darren,&lt;BR /&gt;just now got to check it and It worked!&lt;BR /&gt;Thanks!!&lt;BR /&gt;Doron</description>
      <pubDate>Mon, 18 May 2015 06:38:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27572#M5904</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2015-05-18T06:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: updating oozie-site.xml via REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27932#M5905</link>
      <description>&lt;P&gt;I manage to create python script to change the configuration.&lt;/P&gt;&lt;P&gt;here is an example:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://linuxlabrat.wordpress.com/2015/05/26/updating-cdh-configuration-using-python-and-rest-apis/"&gt;https://linuxlabrat.wordpress.com/2015/05/26/updating-cdh-configuration-using-python-and-rest-apis/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 11:59:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/updating-oozie-site-xml-via-REST-api/m-p/27932#M5905</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2015-05-26T11:59:16Z</dc:date>
    </item>
  </channel>
</rss>

