<?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: Spark Streaming - out of memory when submit using Oozie in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45734#M34549</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it works applying above configuration.&lt;/P&gt;&lt;P&gt;But now i have a NullPointerException in my spark code (rdd.foreach):&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;kafkaStream.foreachRDD(new VoidFunction&amp;lt;JavaPairRDD&amp;lt;String, byte[]&amp;gt;&amp;gt;() {
			
			public void call(JavaPairRDD&amp;lt;String, byte[]&amp;gt; rdd) throws Exception {
			    &lt;STRONG&gt;rdd.foreach&lt;/STRONG&gt;(new VoidFunction&amp;lt;Tuple2&amp;lt;String, byte[]&amp;gt;&amp;gt;() {
					
			    	public void call(Tuple2&amp;lt;String, byte[]&amp;gt; avroRecord) throws Exception {&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In local mode it works but not in yarn-cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any ideas in order to get it running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Butkiz&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 13:07:28 GMT</pubDate>
    <dc:creator>butkiz</dc:creator>
    <dc:date>2016-09-29T13:07:28Z</dc:date>
    <item>
      <title>Spark Streaming - out of memory when submit using Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/42824#M34546</link>
      <description>&lt;P&gt;Dear Colleages,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I submitted a Spark Streaming job via Oozie and get the following error messages:&lt;/P&gt;&lt;PRE&gt;Warning: Skip remote jar hdfs://quickstart.cloudera:8020/user/oozie/share/lib/lib_20160405235854/oozie/oozie-sharelib-oozie.jar.
Halting due to Out Of Memory Error...
Halting due to Out Of Memory Error...

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "LeaseRenewer:hdfs@quickstart.cloudera:8020"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Executor task launch worker-2"&lt;/PRE&gt;&lt;P&gt;Do you have an idea or a solution to prevent these error messages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;butkiz&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:29:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/42824#M34546</guid>
      <dc:creator>butkiz</dc:creator>
      <dc:date>2022-09-16T10:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Streaming - out of memory when submit using Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45245#M34547</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you fixed the issue..?</description>
      <pubDate>Mon, 19 Sep 2016 12:09:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45245#M34547</guid>
      <dc:creator>kchaitanya</dc:creator>
      <dc:date>2016-09-19T12:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Streaming - out of memory when submit using Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45305#M34548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear&amp;nbsp;&lt;SPAN&gt;butkiz,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please add the following property to the configuration block of the oozie spark action to give this more memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;oozie.launcher.mapreduce.map.memory.mb&amp;lt;/name&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;lt;value&amp;gt;4096&amp;lt;/value&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  &amp;lt;name&amp;gt;mapreduce.map.memory.mb&amp;lt;/name&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  &amp;lt;value&amp;gt;4096&amp;lt;/value&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;oozie.launcher.mapred.child.java.opts&amp;lt;/name&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;-Xmx4096m&amp;lt;/value&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 09:54:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45305#M34548</guid>
      <dc:creator>roczei</dc:creator>
      <dc:date>2016-09-20T09:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Streaming - out of memory when submit using Oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45734#M34549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it works applying above configuration.&lt;/P&gt;&lt;P&gt;But now i have a NullPointerException in my spark code (rdd.foreach):&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;kafkaStream.foreachRDD(new VoidFunction&amp;lt;JavaPairRDD&amp;lt;String, byte[]&amp;gt;&amp;gt;() {
			
			public void call(JavaPairRDD&amp;lt;String, byte[]&amp;gt; rdd) throws Exception {
			    &lt;STRONG&gt;rdd.foreach&lt;/STRONG&gt;(new VoidFunction&amp;lt;Tuple2&amp;lt;String, byte[]&amp;gt;&amp;gt;() {
					
			    	public void call(Tuple2&amp;lt;String, byte[]&amp;gt; avroRecord) throws Exception {&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In local mode it works but not in yarn-cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any ideas in order to get it running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Butkiz&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:07:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Streaming-out-of-memory-when-submit-using-Oozie/m-p/45734#M34549</guid>
      <dc:creator>butkiz</dc:creator>
      <dc:date>2016-09-29T13:07:28Z</dc:date>
    </item>
  </channel>
</rss>

