Getting NullPointerException when running Spark Code in Zeppelin 0.7.1

后端 未结 9 1012
梦毁少年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:37

    Did you set right SPARK_HOME? Just wondered what sk is in your export SPARK_HOME="/${homedir}/sk"

    (I just wanted to comment below your question but couldn't, due to my lack of reputation

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-05 11:42

    solved it by adding this line at the top in file common.sh in dir zeppelin-0.6.1 then bin

    open common.sh and add command in the top of file set :

    unset CLASSPATH

    0 讨论(0)
提交回复
热议问题