<?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: Controlling Yarn Map and Reduce Memory Configurations in Sqoop 1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-Yarn-Map-and-Reduce-Memory-Configurations-in/m-p/35066#M11923</link>
    <description>&lt;P&gt;As it so often happens, I went out for a walk and came back to look at a few other things. &amp;nbsp;And sure enough, I now see this would be how you tune the job. &amp;nbsp;I guess if any good can come from my lack of attention to detail, at least I now have it engraved&amp;nbsp;in my mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sqoop import -D mapreduce.map.memory.mb=4096 -D mapreduce.map.java.opts=-Xmx3000m ....&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2015 21:21:41 GMT</pubDate>
    <dc:creator>Mac Noland BS</dc:creator>
    <dc:date>2015-12-10T21:21:41Z</dc:date>
    <item>
      <title>Controlling Yarn Map and Reduce Memory Configurations in Sqoop 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-Yarn-Map-and-Reduce-Memory-Configurations-in/m-p/35065#M11922</link>
      <description>&lt;P&gt;We have a Sqoop 1 query that is throwing a " Error: Java heap space" message on both our Sqoop driver and the Map/Reduce jobs running under Yarn.&amp;nbsp; We were able to increase the Sqoop driver heap by setting HADOOP_HEAPSIZE to 2MB and that has solved the initial issue. &amp;nbsp;It looks like the way the scripts work, you just need to pass in the megabytes and the scrpit prefixes -Xms and adds 'm' at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;export HADOOP_HEAPSIZE=2000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sqoop import ......&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, we can't find the correct place to set what we presume is the container memory and actual task process heap size configuration.&amp;nbsp; Our cluster is currently configured with the following settings for Yarn.&amp;nbsp; These are set via Cloudera Manager and are stored in the mapred-site.xml file.&amp;nbsp; We don't want to adjust the entire cluster setting as these work fine for 99% of the jobs we run.&amp;nbsp; We just have one problem child that we'd like to tune.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;mapreduce.map.memory.mb=1024&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;mapreduce.map.java.opts=-Djava.net.preferIPv4Stack=true -Xmx825955249&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;We have tried the following without any luck.&amp;nbsp; Is there any other suggestions for where we should be configuring these two settings for Sqoop 1 initiated jobs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;export HADOOP_OPTS="-Dmapreduce.map.memory.mb=2000 -Dmapreduce.map.java.opts=-Xmx1500m"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;export HADOOP_CLIENT_OPTS="-Dmapreduce.map.memory.mb=2000 -Dmapreduce.map.java.opts=-Xmx1500m"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;export YARN_OPTS="-Dmapreduce.map.memory.mb=2000 -Dmapreduce.map.java.opts=-Xmx1500m"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;export YARN_CLIENT_OPTS="-Dmapreduce.map.memory.mb=2000 -Dmapreduce.map.java.opts=-Xmx1500m"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sqoop import ....&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:52:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-Yarn-Map-and-Reduce-Memory-Configurations-in/m-p/35065#M11922</guid>
      <dc:creator>Mac Noland BS</dc:creator>
      <dc:date>2022-09-16T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling Yarn Map and Reduce Memory Configurations in Sqoop 1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-Yarn-Map-and-Reduce-Memory-Configurations-in/m-p/35066#M11923</link>
      <description>&lt;P&gt;As it so often happens, I went out for a walk and came back to look at a few other things. &amp;nbsp;And sure enough, I now see this would be how you tune the job. &amp;nbsp;I guess if any good can come from my lack of attention to detail, at least I now have it engraved&amp;nbsp;in my mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sqoop import -D mapreduce.map.memory.mb=4096 -D mapreduce.map.java.opts=-Xmx3000m ....&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 21:21:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-Yarn-Map-and-Reduce-Memory-Configurations-in/m-p/35066#M11923</guid>
      <dc:creator>Mac Noland BS</dc:creator>
      <dc:date>2015-12-10T21:21:41Z</dc:date>
    </item>
  </channel>
</rss>

