<?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: Different configuration file from CM API vs client configuration URL in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43802#M37424</link>
    <description>&lt;P&gt;Hi atai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your first CM API call will download the mapred-site.xml configuration file that this specific role instance was started with (in your case Resource Manager). See&amp;nbsp;that the mapred-site.xml config file in&lt;FONT face="courier new,courier"&gt;/var/run/cloudera-scm-agent/process/xxx-yarn-RESOURCEMANAGER/mapred-site.xml&amp;nbsp;&lt;/FONT&gt;has the same values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This mapred-site.xml file&amp;nbsp;contains only the configuration values that are relevant to the Resource Manager role.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You want to download the client configuration files for the YARN service instead, using the UI or a call like&lt;/P&gt;&lt;PRE&gt;# curl -o yarn-clientconfig.zip -u admin:admin http://cmhost:7180/api/v12/clusters/Cluster%201/services/YARN-1/clientConfig&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 08:23:41 GMT</pubDate>
    <dc:creator>gzigldrum</dc:creator>
    <dc:date>2016-08-11T08:23:41Z</dc:date>
    <item>
      <title>Different configuration file from CM API vs client configuration URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43764#M37423</link>
      <description>&lt;P&gt;Hello all --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dynamically retrieving configuration files using the Cloudera Manager API.&lt;/P&gt;&lt;P&gt;In particular, I am interested in Yarn's mapred-site.xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When downloading from&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;http://example.com:7180/api/v12/clusters/Cluster 1/services/yarn/roles/yarn-RESOURCEMANAGER-xyz/process/configFiles/mapred-site.xml&lt;/PRE&gt;&lt;P&gt;I get what looks like a partial mapred-site.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;

&amp;lt;!--Autogenerated by Cloudera Manager--&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;mapreduce.jobhistory.webapp.address&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;example.com:19888&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;mapreduce.jobhistory.webapp.https.address&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;example.com:19890&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I download the client configuration zip file from Cloudera Manager:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/f5e8159158a59f10bf6ce3fe4f08c206172e6948/687474703a2f2f692e696d6775722e636f6d2f4d3142446f6c382e706e67" border="0" alt="" width="561" height="303" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the mapred-site.xml contained inside the zip file is much larger and appears to contain all configuration values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is there a difference between the two files? How can I get the version of the file that contains the complete configuration from the CM API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version: Cloudera Enterprise 5.7.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43764#M37423</guid>
      <dc:creator>atai</dc:creator>
      <dc:date>2022-09-16T10:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Different configuration file from CM API vs client configuration URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43802#M37424</link>
      <description>&lt;P&gt;Hi atai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your first CM API call will download the mapred-site.xml configuration file that this specific role instance was started with (in your case Resource Manager). See&amp;nbsp;that the mapred-site.xml config file in&lt;FONT face="courier new,courier"&gt;/var/run/cloudera-scm-agent/process/xxx-yarn-RESOURCEMANAGER/mapred-site.xml&amp;nbsp;&lt;/FONT&gt;has the same values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This mapred-site.xml file&amp;nbsp;contains only the configuration values that are relevant to the Resource Manager role.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You want to download the client configuration files for the YARN service instead, using the UI or a call like&lt;/P&gt;&lt;PRE&gt;# curl -o yarn-clientconfig.zip -u admin:admin http://cmhost:7180/api/v12/clusters/Cluster%201/services/YARN-1/clientConfig&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:23:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43802#M37424</guid>
      <dc:creator>gzigldrum</dc:creator>
      <dc:date>2016-08-11T08:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Different configuration file from CM API vs client configuration URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43819#M37425</link>
      <description>&lt;P&gt;Ah, I think I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for responding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 13:49:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Different-configuration-file-from-CM-API-vs-client/m-p/43819#M37425</guid>
      <dc:creator>atai</dc:creator>
      <dc:date>2016-08-11T13:49:29Z</dc:date>
    </item>
  </channel>
</rss>

