org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 59.0 failed 1 times, most recent failure: Lost task 0.0 in stage 59.0 (TID 63, localhost): java.lang.NullPointerException

Stack Overflow | nickn | 10 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

    Query cassandra from spark executor

    Stack Overflow | 10 months ago | nickn
    org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 59.0 failed 1 times, most recent failure: Lost task 0.0 in stage 59.0 (TID 63, localhost): java.lang.NullPointerException
  2. 0

    Spark scala: SELECT in a foreach loop returns java.lang.NullPointerException

    Stack Overflow | 1 year ago | MarkTeehan
    org.apache.spark.SparkException: Job aborted due to stage failure: Task 158 in stage 94.0 failed 1 times, most recent failure: Lost task 158.0 in stage 94.0 (TID 3525, localhost): java.lang.NullPointerException

    Root Cause Analysis

    1. org.apache.spark.SparkException

      Job aborted due to stage failure: Task 0 in stage 59.0 failed 1 times, most recent failure: Lost task 0.0 in stage 59.0 (TID 63, localhost): java.lang.NullPointerException

      at org.apache.spark.sql.SQLContext.parseSql()
    2. Spark Project SQL
      SQLContext.parseSql
      1. org.apache.spark.sql.SQLContext.parseSql(SQLContext.scala:231)
      1 frame
    3. spark-cassandra-connector
      CassandraSQLContext.cassandraSql
      1. org.apache.spark.sql.cassandra.CassandraSQLContext.cassandraSql(CassandraSQLContext.scala:70)
      1 frame
    4. Unknown
      RollupFineGrainIngestionService$$anonfun$11$$anonfun$apply$2.apply
      1. RollupFineGrainIngestionService$$anonfun$11$$anonfun$apply$2.apply(MyFile.scala:130)
      2. RollupFineGrainIngestionService$$anonfun$11$$anonfun$apply$2.apply(MyFile.scala:123)
      2 frames
    5. Scala
      Iterator$$anon$11.next
      1. scala.collection.Iterator$$anon$11.next(Iterator.scala:370)
      1 frame
    6. Spark
      RDD.iterator
      1. org.apache.spark.storage.MemoryStore.unrollSafely(MemoryStore.scala:285)
      2. org.apache.spark.CacheManager.putInBlockManager(CacheManager.scala:171)
      3. org.apache.spark.CacheManager.getOrCompute(CacheManager.scala:78)
      4. org.apache.spark.rdd.RDD.iterator(RDD.scala:268)
      5. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
      6. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306)
      7. org.apache.spark.rdd.RDD.iterator(RDD.scala:270)
      8. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
      9. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306)
      10. org.apache.spark.rdd.RDD.iterator(RDD.scala:270)
      10 frames