<?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: Cluster-wide Configuration Safety Valve for core-site.xml using python script and Cloudera API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7630#M1267</link>
    <description>&lt;P&gt;I've managed to select the attribute 'core_site_safety_valve', from the database settings for CM Manager, but doing know how to ammend this value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@cloudera ~]# cat /etc/cloudera-scm-server/db.properties&lt;BR /&gt;# Auto-generated by initialize_embedded_db.sh&lt;BR /&gt;#&lt;BR /&gt;# 20131007-081546&lt;BR /&gt;#&lt;BR /&gt;# These are database settings for CM Manager&lt;BR /&gt;#&lt;BR /&gt;com.cloudera.cmf.db.type=postgresql&lt;BR /&gt;com.cloudera.cmf.db.host=localhost:7432&lt;BR /&gt;com.cloudera.cmf.db.name=scm&lt;BR /&gt;com.cloudera.cmf.db.user=scm&lt;BR /&gt;com.cloudera.cmf.db.password=AkmRKUIBSJ&lt;BR /&gt;[root@cloudera ~]# psql -h localhost -p 7432 -U scm&lt;BR /&gt;Password for user scm:&lt;BR /&gt;psql (8.4.13)&lt;BR /&gt;Type "help" for help.&lt;/P&gt;&lt;P&gt;scm=&amp;gt; select value from configs where attr = 'core_site_safety_valve';&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2014 04:19:43 GMT</pubDate>
    <dc:creator>Graham_Kidd</dc:creator>
    <dc:date>2014-03-20T04:19:43Z</dc:date>
    <item>
      <title>Cluster-wide Configuration Safety Valve for core-site.xml using python script and Cloudera API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7392#M1266</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanting to ammend the Cluster-wide Configuration Safety Valve for core-site.xml using a python script and Cloudera API commands, but can't fugure out how to do it.......any assistance would be greatly appreciated !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Hadoop 2.0.0-cdh4.4.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:55:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7392#M1266</guid>
      <dc:creator>Graham_Kidd</dc:creator>
      <dc:date>2022-09-16T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster-wide Configuration Safety Valve for core-site.xml using python script and Cloudera API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7630#M1267</link>
      <description>&lt;P&gt;I've managed to select the attribute 'core_site_safety_valve', from the database settings for CM Manager, but doing know how to ammend this value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@cloudera ~]# cat /etc/cloudera-scm-server/db.properties&lt;BR /&gt;# Auto-generated by initialize_embedded_db.sh&lt;BR /&gt;#&lt;BR /&gt;# 20131007-081546&lt;BR /&gt;#&lt;BR /&gt;# These are database settings for CM Manager&lt;BR /&gt;#&lt;BR /&gt;com.cloudera.cmf.db.type=postgresql&lt;BR /&gt;com.cloudera.cmf.db.host=localhost:7432&lt;BR /&gt;com.cloudera.cmf.db.name=scm&lt;BR /&gt;com.cloudera.cmf.db.user=scm&lt;BR /&gt;com.cloudera.cmf.db.password=AkmRKUIBSJ&lt;BR /&gt;[root@cloudera ~]# psql -h localhost -p 7432 -U scm&lt;BR /&gt;Password for user scm:&lt;BR /&gt;psql (8.4.13)&lt;BR /&gt;Type "help" for help.&lt;/P&gt;&lt;P&gt;scm=&amp;gt; select value from configs where attr = 'core_site_safety_valve';&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 04:19:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7630#M1267</guid>
      <dc:creator>Graham_Kidd</dc:creator>
      <dc:date>2014-03-20T04:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster-wide Configuration Safety Valve for core-site.xml using python script and Cloudera API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7632#M1268</link>
      <description>&lt;P&gt;Hi Graham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a service-level property of HDFS. The rest endpoint to find it looks like this:&lt;/P&gt;&lt;P&gt;http://&amp;lt;cm_host&amp;gt;:7180/api/v5/clusters/&amp;lt;cluster_name&amp;gt;/services/&amp;lt;hdfs_service_hame&amp;gt;/config?view=full&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To modify it using the python api, get a handle to the HDFS service and call hdfs.update_config({"core_site_safety_valve": core_site_safety_valve_value }).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See more on using the python API here:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://cloudera.github.io/cm_api/docs/python-client/"&gt;http://cloudera.github.io/cm_api/docs/python-client/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:02:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/7632#M1268</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2014-03-20T05:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster-wide Configuration Safety Valve for core-site.xml using python script and Cloudera API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/8070#M1269</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply, I got this working due to your information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;</description>
      <pubDate>Sat, 29 Mar 2014 21:21:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Cluster-wide-Configuration-Safety-Valve-for-core-site-xml/m-p/8070#M1269</guid>
      <dc:creator>Graham_Kidd</dc:creator>
      <dc:date>2014-03-29T21:21:07Z</dc:date>
    </item>
  </channel>
</rss>

