<?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>topic Re: How to get default configuration properties in MapR in HPE Ezmeral Software platform</title>
    <link>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140884#M126</link>
    <description>&lt;P&gt;Configuration management with Hadoop can be very complex.&lt;/P&gt;&lt;P&gt;In my experience, because it can be a bit tricky to determine which configurationi files are being used, it is best to go directly to the ground truth. I do this by two mechanisms (see Alex's answer for a slightly different and less home-made approach).&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I use a small java program to spill all the contents of a default configuration object. This is easy because Configuration objects are iterable.&amp;nbsp; I adapted a stack overflow answer and built a github repo with the code. See the README for detailed instructions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ git clone https://github.com/tdunning/config-print.git
Cloning into 'config-print'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 13 (delta 1), reused 12 (delta 0), pack-reused 0
Unpacking objects: 100% (13/13), done.
$ cd config-print/
$ mvn -q package
$ HADOOP_HOME=/opt/mapr/hadoop/hadoop-2.7.0/ ./target/config-printer | sort
dfs.ha.fencing.ssh.connect-timeout = 30000
file.blocksize = 67108864
file.bytes-per-checksum = 512
file.client-write-packet-size = 65536
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I use system tracing to find all of the configuration files that are accessed, and in what order. I don't have a hadoop environment handy, but here is how I found out what files R uses from my home directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;$ strace -o r.log R
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
   ... stuff deleted ...
Type 'q()' to quit R.

&amp;gt; q()
Save workspace image? [y/n/c]: n
$ grep open r.log | grep /home/
openat(AT_FDCWD, "/home/tdunning/.Renviron.", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tdunning/.Renviron", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tdunning/.Rprofile", O_RDONLY) = -1 ENOENT (No such file or directory)
$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 20:07:16 GMT</pubDate>
    <dc:creator>tdunning</dc:creator>
    <dc:date>2021-06-28T20:07:16Z</dc:date>
    <item>
      <title>How to get default configuration properties in MapR</title>
      <link>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140789#M120</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to find the default properties from the&amp;nbsp;&lt;/SPAN&gt;MapR Hadoop&lt;SPAN&gt;. From the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.datafabric.hpe.com/60/ReferenceGuide/ConfigurationFiles.html" target="_blank" rel="nofollow noopener noreferrer"&gt;HPE&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;website (MapR is now owned by the HPE) got to know the configuration files path. But these files show only some specific properties, not all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140789#M120</guid>
      <dc:creator>parker9584</dc:creator>
      <dc:date>2021-06-29T16:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get default configuration properties in MapR</title>
      <link>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140881#M124</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;One way to list Hadoop configuration properties (including defaults) is 'hadoop conf' command. Output will include default values for properties that are not explicitly configured. You may also check out 'hadoop conf-details' option that may be of interest.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Alex&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 19:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140881#M124</guid>
      <dc:creator>okalinin</dc:creator>
      <dc:date>2021-06-28T19:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get default configuration properties in MapR</title>
      <link>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140884#M126</link>
      <description>&lt;P&gt;Configuration management with Hadoop can be very complex.&lt;/P&gt;&lt;P&gt;In my experience, because it can be a bit tricky to determine which configurationi files are being used, it is best to go directly to the ground truth. I do this by two mechanisms (see Alex's answer for a slightly different and less home-made approach).&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I use a small java program to spill all the contents of a default configuration object. This is easy because Configuration objects are iterable.&amp;nbsp; I adapted a stack overflow answer and built a github repo with the code. See the README for detailed instructions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ git clone https://github.com/tdunning/config-print.git
Cloning into 'config-print'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 13 (delta 1), reused 12 (delta 0), pack-reused 0
Unpacking objects: 100% (13/13), done.
$ cd config-print/
$ mvn -q package
$ HADOOP_HOME=/opt/mapr/hadoop/hadoop-2.7.0/ ./target/config-printer | sort
dfs.ha.fencing.ssh.connect-timeout = 30000
file.blocksize = 67108864
file.bytes-per-checksum = 512
file.client-write-packet-size = 65536
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I use system tracing to find all of the configuration files that are accessed, and in what order. I don't have a hadoop environment handy, but here is how I found out what files R uses from my home directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;$ strace -o r.log R
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
   ... stuff deleted ...
Type 'q()' to quit R.

&amp;gt; q()
Save workspace image? [y/n/c]: n
$ grep open r.log | grep /home/
openat(AT_FDCWD, "/home/tdunning/.Renviron.", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tdunning/.Renviron", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tdunning/.Rprofile", O_RDONLY) = -1 ENOENT (No such file or directory)
$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140884#M126</guid>
      <dc:creator>tdunning</dc:creator>
      <dc:date>2021-06-28T20:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get default configuration properties in MapR</title>
      <link>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140905#M129</link>
      <description>&lt;P&gt;To add to Alex's answer, I tried playing with the "hadoop conf-details" command and wanted to format the output in pretty, more human-readable XML.&amp;nbsp; Here's an example of capturing all the hadoop configuration parameters into a nicely formatted XML file and then displaying a few of the properties:&lt;BR /&gt;&lt;BR /&gt;# hadoop conf-details print-all-effective-properties | xmllint --output hadoop_conf.xml --format -&lt;BR /&gt;# head -32 hadoop_conf.xml&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;yarn.ipc.rpc.class&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC&amp;lt;/value&amp;gt;
    &amp;lt;source&amp;gt;yarn-default.xml&amp;lt;/source&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;mapreduce.job.maxtaskfailures.per.tracker&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt;
    &amp;lt;source&amp;gt;mapred-default.xml&amp;lt;/source&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;yarn.client.max-cached-nodemanagers-proxies&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;0&amp;lt;/value&amp;gt;
    &amp;lt;source&amp;gt;yarn-default.xml&amp;lt;/source&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;mapreduce.job.speculative.retry-after-speculate&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;15000&amp;lt;/value&amp;gt;
    &amp;lt;source&amp;gt;mapred-default.xml&amp;lt;/source&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;ha.health-monitor.connect-retry-interval.ms&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;1000&amp;lt;/value&amp;gt;
    &amp;lt;source&amp;gt;core-default.xml&amp;lt;/source&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;yarn.resourcemanager.work-preserving-recovery.enabled&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
    &amp;lt;source&amp;gt;yarn-default.xml&amp;lt;/source&amp;gt;
  &amp;lt;/property&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above XML file now contains all the hadoop parameters with their respective values and locations in a nicely formatted output.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 00:20:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-ezmeral-software-platform/how-to-get-default-configuration-properties-in-mapr/m-p/7140905#M129</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2021-06-29T00:20:26Z</dc:date>
    </item>
  </channel>
</rss>

