org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0, localhost): java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.spark.streaming.receiver.Receiver

Stack Overflow | Sachin | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Spark Streaming Context and JavaSparkContext for parallel processing

    Stack Overflow | 5 months ago | Sachin
    org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0, localhost): java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.spark.streaming.receiver.Receiver

    Root Cause Analysis

    1. org.apache.spark.SparkException

      Job aborted due to stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0, localhost): java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.spark.streaming.receiver.Receiver

      at org.apache.spark.streaming.scheduler.ReceiverTracker$ReceiverLauncher$$anonfun$8.apply()
    2. Spark Project Streaming
      ReceiverTracker$ReceiverLauncher$$anonfun$8.apply
      1. org.apache.spark.streaming.scheduler.ReceiverTracker$ReceiverLauncher$$anonfun$8.apply(ReceiverTracker.scala:305)
      2. org.apache.spark.streaming.scheduler.ReceiverTracker$ReceiverLauncher$$anonfun$8.apply(ReceiverTracker.scala:300)
      2 frames
    3. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1767)
      2. org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1767)
      3. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:63)
      4. org.apache.spark.scheduler.Task.run(Task.scala:70)
      5. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:213)
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames