java.lang.NullPointerException

Stack Overflow | Vitali D. | 6 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

    Call SparkSession in worker (Spark-SQL, Java)

    Stack Overflow | 6 months ago | Vitali D.
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.spark.sql.SparkSession.sessionState$lzycompute()
    2. Spark Project SQL
      SparkSession.createDataFrame
      1. org.apache.spark.sql.SparkSession.sessionState$lzycompute(SparkSession.scala:112)
      2. org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:110)
      3. org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:63)
      4. org.apache.spark.sql.SparkSession.createDataFrame(SparkSession.scala:328)
      4 frames
    3. Unknown
      Main.lambda$main$e7daa47c$1
      1. Main.lambda$main$e7daa47c$1(Main.java:62)
      1 frame
    4. Spark
      JavaPairRDD$$anonfun$toScalaFunction$1.apply
      1. org.apache.spark.api.java.JavaPairRDD$$anonfun$toScalaFunction$1.apply(JavaPairRDD.scala:1028)
      1 frame
    5. Scala
      Iterator$$anon$11.next
      1. scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
      1 frame
    6. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:148)
      2. org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:79)
      3. org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:47)
      4. org.apache.spark.scheduler.Task.run(Task.scala:85)
      5. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
      5 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames