Saisai Shao created SPARK-14455:
-----------------------------------

             Summary: 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


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

Reply via email to