Getting NullPointerException when running Spark Code in Zeppelin 0.7.1

后端 未结 9 998
梦毁少年i
梦毁少年i 2021-02-05 10:59

I have installed Zeppelin 0.7.1. When I tried to execute the Example spark program(which was available with Zeppelin Tutorial notebook), I am getting t

9条回答
  •  既然无缘
    2021-02-05 11:38

    Just now I got solution of this issue for Zeppelin-0.7.2:

    Root Cause is : Spark trying to setup Hive context, but hdfs services is not running, that's why HiveContext become null and throwing null pointer exception.

    Solution:
    1. Setup Saprk Home [optional] and HDFS.
    2. Run HDFS service
    3. Restart zeppelin server
    OR
    1. Go to Zeppelin's Interpreter settings.
    2. Select Spark Interpreter
    3. zeppelin.spark.useHiveContext = false

提交回复
热议问题