[ https://issues.apache.org/jira/browse/SPARK-14455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Or resolved SPARK-14455. ------------------------------- Resolution: Fixed Assignee: Saisai Shao Fix Version/s: 2.0.0 Target Version/s: 2.0.0 > ReceiverTracker#allocatedExecutors throw NPE for receiver-less streaming > application > ------------------------------------------------------------------------------------ > > Key: SPARK-14455 > URL: https://issues.apache.org/jira/browse/SPARK-14455 > Project: Spark > Issue Type: Bug > Components: Streaming > Affects Versions: 2.0.0 > Reporter: Saisai Shao > Assignee: Saisai Shao > Fix For: 2.0.0 > > > When testing streaming dynamic allocation with direct Kafka, streaming > {{ExecutorAllocationManager}} throws NPE which is due to {{ReceiverTracker}} > not start, it will happen when running receiver-less streaming application > like direct Kafka. Here is the exception log: > {noformat} > Exception in thread "RecurringTimer - streaming-executor-allocation-manager" > java.lang.NullPointerException > at > org.apache.spark.streaming.scheduler.ReceiverTracker.allocatedExecutors(ReceiverTracker.scala:244) > at > org.apache.spark.streaming.scheduler.ExecutorAllocationManager.killExecutor(ExecutorAllocationManager.scala:124) > at > org.apache.spark.streaming.scheduler.ExecutorAllocationManager.org$apache$spark$streaming$scheduler$ExecutorAllocationManager$$manageAllocation(ExecutorAllocationManager.scala:100) > at > org.apache.spark.streaming.scheduler.ExecutorAllocationManager$$anonfun$1.apply$mcVJ$sp(ExecutorAllocationManager.scala:66) > at > org.apache.spark.streaming.util.RecurringTimer.triggerActionForNextInterval(RecurringTimer.scala:94) > at > org.apache.spark.streaming.util.RecurringTimer.org$apache$spark$streaming$util$RecurringTimer$$loop(RecurringTimer.scala:106) > at > org.apache.spark.streaming.util.RecurringTimer$$anon$1.run(RecurringTimer.scala:29) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org