<?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 CDH 5.7.0 Spark 1.6.0 Has numerous RejectedExecutionException messages in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-5-7-0-Spark-1-6-0-Has-numerous/m-p/44876#M40021</link>
    <description>&lt;P&gt;I have an existing job which has run successfully many times in the past but a recent launch using Yarn Cluster Mode with the same configuration as an earlier atttempt (which failed for other reasons) generated many instances of&amp;nbsp;&lt;/P&gt;&lt;P&gt;6308860 [Stage 1:==============================================&amp;gt; (12508 + 712) / 13220]java.util.concurrent.RejectedExecutionException: Task scala.concurrent.impl.CallbackRunnable@6d3616e6 rejected from java.util.concurrent.ThreadPoolExecutor@4eef216[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 11 70]&lt;BR /&gt;6308861 at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)&lt;BR /&gt;6308862 at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)&lt;BR /&gt;6308863 at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)&lt;BR /&gt;6308864 at scala.concurrent.impl.ExecutionContextImpl.execute(ExecutionContextImpl.scala:122)&lt;BR /&gt;6308865 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308866 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308867 at scala.concurrent.Promise$class.complete(Promise.scala:55)&lt;BR /&gt;6308868 at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)&lt;BR /&gt;6308869 at scala.concurrent.Future$$anonfun$recover$1.apply(Future.scala:324)&lt;BR /&gt;6308870 at scala.concurrent.Future$$anonfun$recover$1.apply(Future.scala:324)&lt;BR /&gt;6308871 at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)&lt;BR /&gt;6308872 at org.spark-project.guava.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)&lt;BR /&gt;6308873 at scala.concurrent.impl.ExecutionContextImpl$$anon$1.execute(ExecutionContextImpl.scala:133)&lt;BR /&gt;6308874 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308875 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308876 at scala.concurrent.Promise$class.complete(Promise.scala:55)&lt;BR /&gt;6308877 at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)&lt;BR /&gt;6308878 at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)&lt;BR /&gt;6308879 at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)&lt;BR /&gt;6308880 at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)&lt;BR /&gt;6308881 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.processBatch$1(Future.scala:643)&lt;BR /&gt;6308882 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.apply$mcV$sp(Future.scala:658)&lt;BR /&gt;6308883 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.apply(Future.scala:635)&lt;BR /&gt;6308884 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.apply(Future.scala:635)&lt;BR /&gt;6308885 at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)&lt;BR /&gt;6308886 at scala.concurrent.Future$InternalCallbackExecutor$Batch.run(Future.scala:634)&lt;BR /&gt;6308887 at scala.concurrent.Future$InternalCallbackExecutor$.scala$concurrent$Future$InternalCallbackExecutor$$unbatchedExecute(Future.scala:694)&lt;BR /&gt;6308888 at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:685)&lt;BR /&gt;6308889 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308890 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308891 at scala.concurrent.Promise$class.trySuccess(Promise.scala:94)&lt;BR /&gt;6308892 at scala.concurrent.impl.Promise$DefaultPromise.trySuccess(Promise.scala:153)&lt;BR /&gt;6308893 at org.apache.spark.rpc.netty.NettyRpcEnv.org$apache$spark$rpc$netty$NettyRpcEnv$$onSuccess$1(NettyRpcEnv.scala:215)&lt;BR /&gt;6308894 at org.apache.spark.rpc.netty.NettyRpcEnv$$anonfun$ask$2.apply(NettyRpcEnv.scala:223)&lt;BR /&gt;6308895 at org.apache.spark.rpc.netty.NettyRpcEnv$$anonfun$ask$2.apply(NettyRpcEnv.scala:222)&lt;BR /&gt;6308896 at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)&lt;BR /&gt;6308897 at org.spark-project.guava.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)&lt;BR /&gt;6308898 at scala.concurrent.impl.ExecutionContextImpl$$anon$1.execute(ExecutionContextImpl.scala:133)&lt;BR /&gt;6308899 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308900 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308901 at scala.concurrent.Promise$class.complete(Promise.scala:55)&lt;BR /&gt;6308902 at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)&lt;BR /&gt;6308903 at scala.concurrent.Promise$class.success(Promise.scala:86)&lt;BR /&gt;6308904 at scala.concurrent.impl.Promise$DefaultPromise.success(Promise.scala:153)&lt;BR /&gt;6308905 at org.apache.spark.rpc.netty.LocalNettyRpcCallContext.send(NettyRpcCallContext.scala:50)&lt;BR /&gt;6308906 at org.apache.spark.rpc.netty.NettyRpcCallContext.reply(NettyRpcCallContext.scala:32)&lt;BR /&gt;6308907 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7$$anonfun$apply$8.apply(YarnAllocator.scala:517)&lt;BR /&gt;6308908 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7$$anonfun$apply$8.apply(YarnAllocator.scala:517)&lt;BR /&gt;6308909 at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)&lt;BR /&gt;6308910 at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)&lt;BR /&gt;6308911 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7.apply(YarnAllocator.scala:517)&lt;BR /&gt;6308912 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7.apply(YarnAllocator.scala:512)&lt;BR /&gt;6308913 at scala.Option.foreach(Option.scala:236)&lt;BR /&gt;6308914 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1.apply(YarnAllocator.scala:512)&lt;BR /&gt;6308915 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1.apply(YarnAllocator.scala:442)&lt;BR /&gt;[Deleted items from the stack, various places in spark and its libraries for brevity]&lt;/P&gt;&lt;P&gt;6308919 at scala.collection.AbstractIterable.foreach(Iterable.scala:54)&lt;BR /&gt;6308920 at org.apache.spark.deploy.yarn.YarnAllocator.processCompletedContainers(YarnAllocator.scala:442)&lt;BR /&gt;6308921 at org.apache.spark.deploy.yarn.YarnAllocator.allocateResources(YarnAllocator.scala:242)&lt;BR /&gt;6308922 at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$1.run(ApplicationMaster.scala:368)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a new symptom to me, any idea what causes it and whether this is responsible for this job's failure? &amp;nbsp;Is there some reason why these messages are not logged with timestamps?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:38:19 GMT</pubDate>
    <dc:creator>BillM.</dc:creator>
    <dc:date>2022-09-16T10:38:19Z</dc:date>
    <item>
      <title>CDH 5.7.0 Spark 1.6.0 Has numerous RejectedExecutionException messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-5-7-0-Spark-1-6-0-Has-numerous/m-p/44876#M40021</link>
      <description>&lt;P&gt;I have an existing job which has run successfully many times in the past but a recent launch using Yarn Cluster Mode with the same configuration as an earlier atttempt (which failed for other reasons) generated many instances of&amp;nbsp;&lt;/P&gt;&lt;P&gt;6308860 [Stage 1:==============================================&amp;gt; (12508 + 712) / 13220]java.util.concurrent.RejectedExecutionException: Task scala.concurrent.impl.CallbackRunnable@6d3616e6 rejected from java.util.concurrent.ThreadPoolExecutor@4eef216[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 11 70]&lt;BR /&gt;6308861 at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)&lt;BR /&gt;6308862 at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)&lt;BR /&gt;6308863 at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)&lt;BR /&gt;6308864 at scala.concurrent.impl.ExecutionContextImpl.execute(ExecutionContextImpl.scala:122)&lt;BR /&gt;6308865 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308866 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308867 at scala.concurrent.Promise$class.complete(Promise.scala:55)&lt;BR /&gt;6308868 at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)&lt;BR /&gt;6308869 at scala.concurrent.Future$$anonfun$recover$1.apply(Future.scala:324)&lt;BR /&gt;6308870 at scala.concurrent.Future$$anonfun$recover$1.apply(Future.scala:324)&lt;BR /&gt;6308871 at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)&lt;BR /&gt;6308872 at org.spark-project.guava.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)&lt;BR /&gt;6308873 at scala.concurrent.impl.ExecutionContextImpl$$anon$1.execute(ExecutionContextImpl.scala:133)&lt;BR /&gt;6308874 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308875 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308876 at scala.concurrent.Promise$class.complete(Promise.scala:55)&lt;BR /&gt;6308877 at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)&lt;BR /&gt;6308878 at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)&lt;BR /&gt;6308879 at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)&lt;BR /&gt;6308880 at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)&lt;BR /&gt;6308881 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.processBatch$1(Future.scala:643)&lt;BR /&gt;6308882 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.apply$mcV$sp(Future.scala:658)&lt;BR /&gt;6308883 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.apply(Future.scala:635)&lt;BR /&gt;6308884 at scala.concurrent.Future$InternalCallbackExecutor$Batch$$anonfun$run$1.apply(Future.scala:635)&lt;BR /&gt;6308885 at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)&lt;BR /&gt;6308886 at scala.concurrent.Future$InternalCallbackExecutor$Batch.run(Future.scala:634)&lt;BR /&gt;6308887 at scala.concurrent.Future$InternalCallbackExecutor$.scala$concurrent$Future$InternalCallbackExecutor$$unbatchedExecute(Future.scala:694)&lt;BR /&gt;6308888 at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:685)&lt;BR /&gt;6308889 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308890 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308891 at scala.concurrent.Promise$class.trySuccess(Promise.scala:94)&lt;BR /&gt;6308892 at scala.concurrent.impl.Promise$DefaultPromise.trySuccess(Promise.scala:153)&lt;BR /&gt;6308893 at org.apache.spark.rpc.netty.NettyRpcEnv.org$apache$spark$rpc$netty$NettyRpcEnv$$onSuccess$1(NettyRpcEnv.scala:215)&lt;BR /&gt;6308894 at org.apache.spark.rpc.netty.NettyRpcEnv$$anonfun$ask$2.apply(NettyRpcEnv.scala:223)&lt;BR /&gt;6308895 at org.apache.spark.rpc.netty.NettyRpcEnv$$anonfun$ask$2.apply(NettyRpcEnv.scala:222)&lt;BR /&gt;6308896 at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)&lt;BR /&gt;6308897 at org.spark-project.guava.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)&lt;BR /&gt;6308898 at scala.concurrent.impl.ExecutionContextImpl$$anon$1.execute(ExecutionContextImpl.scala:133)&lt;BR /&gt;6308899 at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)&lt;BR /&gt;6308900 at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)&lt;BR /&gt;6308901 at scala.concurrent.Promise$class.complete(Promise.scala:55)&lt;BR /&gt;6308902 at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)&lt;BR /&gt;6308903 at scala.concurrent.Promise$class.success(Promise.scala:86)&lt;BR /&gt;6308904 at scala.concurrent.impl.Promise$DefaultPromise.success(Promise.scala:153)&lt;BR /&gt;6308905 at org.apache.spark.rpc.netty.LocalNettyRpcCallContext.send(NettyRpcCallContext.scala:50)&lt;BR /&gt;6308906 at org.apache.spark.rpc.netty.NettyRpcCallContext.reply(NettyRpcCallContext.scala:32)&lt;BR /&gt;6308907 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7$$anonfun$apply$8.apply(YarnAllocator.scala:517)&lt;BR /&gt;6308908 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7$$anonfun$apply$8.apply(YarnAllocator.scala:517)&lt;BR /&gt;6308909 at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)&lt;BR /&gt;6308910 at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)&lt;BR /&gt;6308911 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7.apply(YarnAllocator.scala:517)&lt;BR /&gt;6308912 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1$$anonfun$apply$7.apply(YarnAllocator.scala:512)&lt;BR /&gt;6308913 at scala.Option.foreach(Option.scala:236)&lt;BR /&gt;6308914 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1.apply(YarnAllocator.scala:512)&lt;BR /&gt;6308915 at org.apache.spark.deploy.yarn.YarnAllocator$$anonfun$processCompletedContainers$1.apply(YarnAllocator.scala:442)&lt;BR /&gt;[Deleted items from the stack, various places in spark and its libraries for brevity]&lt;/P&gt;&lt;P&gt;6308919 at scala.collection.AbstractIterable.foreach(Iterable.scala:54)&lt;BR /&gt;6308920 at org.apache.spark.deploy.yarn.YarnAllocator.processCompletedContainers(YarnAllocator.scala:442)&lt;BR /&gt;6308921 at org.apache.spark.deploy.yarn.YarnAllocator.allocateResources(YarnAllocator.scala:242)&lt;BR /&gt;6308922 at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$1.run(ApplicationMaster.scala:368)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a new symptom to me, any idea what causes it and whether this is responsible for this job's failure? &amp;nbsp;Is there some reason why these messages are not logged with timestamps?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:38:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-5-7-0-Spark-1-6-0-Has-numerous/m-p/44876#M40021</guid>
      <dc:creator>BillM.</dc:creator>
      <dc:date>2022-09-16T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: CDH 5.7.0 Spark 1.6.0 Has numerous RejectedExecutionException messages</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-5-7-0-Spark-1-6-0-Has-numerous/m-p/45111#M40022</link>
      <description>The new error message related to RejectedExecutionException is most likely due to the fact that threads are being submitted to executor that have been lost/killed hence you see these type of messages (a good read on RejectedExecutionException can be found here [1]):
===
java.util.concurrent.RejectedExecutionException: Task scala.concurrent.impl.CallbackRunnable@6143b0a3 rejected from java.util.concurrent.ThreadPoolExecutor@4eef216[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1170]
===

[1] &lt;A href="https://examples.javacodegeeks.com/core-java/util/concurrent/rejectedexecutionexception/java-util-concurrent-rejectedexecutionexception-how-to-solve-rejectedexecutionexception" target="_blank"&gt;https://examples.javacodegeeks.com/core-java/util/concurrent/rejectedexecutionexception/java-util-concurrent-rejectedexecutionexception-how-to-solve-rejectedexecutionexception&lt;/A&gt;</description>
      <pubDate>Wed, 14 Sep 2016 21:05:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/CDH-5-7-0-Spark-1-6-0-Has-numerous/m-p/45111#M40022</guid>
      <dc:creator>Dat Pham</dc:creator>
      <dc:date>2016-09-14T21:05:30Z</dc:date>
    </item>
  </channel>
</rss>

