scheduler.TaskSetManager: Lost task 18.0 in stage 0.0 (TID 4, [REDACTED]): java.lang.NullPointerException

GitHub | liangzhaozeng | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.NullPointerException in com.databricks.spark.avro.DefaultSource

    GitHub | 7 months ago | liangzhaozeng
    scheduler.TaskSetManager: Lost task 18.0 in stage 0.0 (TID 4, [REDACTED]): java.lang.NullPointerException

    Root Cause Analysis

    1. scheduler.TaskSetManager

      Lost task 18.0 in stage 0.0 (TID 4, [REDACTED]): java.lang.NullPointerException

      at com.databricks.spark.avro.DefaultSource$$anonfun$buildReader$1.apply()
    2. com.databricks.spark
      DefaultSource$$anonfun$buildReader$1.apply
      1. com.databricks.spark.avro.DefaultSource$$anonfun$buildReader$1.apply(DefaultSource.scala:151)
      2. com.databricks.spark.avro.DefaultSource$$anonfun$buildReader$1.apply(DefaultSource.scala:143)
      2 frames
    3. org.apache.spark
      FileScanRDD$$anon$1.hasNext
      1. org.apache.spark.sql.execution.datasources.FileFormat$$anon$1.apply(fileSourceInterfaces.scala:279)
      2. org.apache.spark.sql.execution.datasources.FileFormat$$anon$1.apply(fileSourceInterfaces.scala:263)
      3. org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.nextIterator(FileScanRDD.scala:116)
      4. org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.hasNext(FileScanRDD.scala:91)
      4 frames
    4. Spark Project Catalyst
      GeneratedClass$GeneratedIterator.processNext
      1. org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown Source)
      1 frame
    5. Spark Project SQL
      WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext
      1. org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
      2. org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:370)
      2 frames
    6. Scala
      Iterator$$anon$11.hasNext
      1. scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      2. scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      3. scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
      3 frames
    7. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.util.Utils$.getIteratorSize(Utils.scala:1682)
      2. org.apache.spark.rdd.RDD$$anonfun$count$1.apply(RDD.scala:1115)
      3. org.apache.spark.rdd.RDD$$anonfun$count$1.apply(RDD.scala:1115)
      4. org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1897)
      5. org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1897)
      6. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
      7. org.apache.spark.scheduler.Task.run(Task.scala:85)
      8. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
      8 frames
    8. 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