apache zeppelin throwing NullPointerException error

柔情痞子 提交于 2019-12-04 18:44:06

First i would ensure that spark is generally running.

Have you tried to run a new "spark notebook".

  1. create new notebook
  2. select spark as default interpreter
  3. just run a paragraph with "sc" in it

It tries to initialize a sparkcontext. When it works we are good and we need to check the options an syntax which is used in the paragraph you are using.

If that is not running i would check/set the zeppelin-env.cmd with the following variables:

  • SPARK_HOME
  • JAVA_HOME
  • HADOOP_CONF_DIR (if using hadoop)

If you didnt setup spark on windows yet it can not work.

  1. download the spark version you like to use https://spark.apache.org/downloads.html

  2. unzip it in a folder of your choice (e.g.windows c:/hadoop/sparkVERSION)

If all those steps dont work, please show me the output and code you try to run.

BR

UPDATE Following post exactly desribes how to setup zeppelin on windows to run the tutorials.

https://hernandezpaul.wordpress.com/2016/11/14/apache-zeppelin-installation-on-windows-10/

I just went through it on my windows machine and it worked fine for me.

I had the same issue with Zeppelin 0.8 on HDP 3.1 with spark 2.3 and I think the issue was in overriding libraries, which are already present in spark interepreter.

The code is working with Kafka DirectStream, but it is not important for this issue.

See, what I have commented and it worked.

%spark2.dep
z.reset()
z.addRepo("MavenCentral").url("https://mvnrepository.com/")
z.load("org.apache.spark:spark-streaming-kafka-0-10_2.11:2.3.0")
z.load("org.apache.kafka:kafka-clients:2.3.0")
//z.load("org.apache.spark:spark-streaming_2.11:2.3.0")
//z.load("org.apache.spark:spark-core_2.11:2.3.2")
//z.load("org.apache.spark:spark-sql_2.11:2.3.2")
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!