AnsweredAssumed Answered

Errors while running Zeppelin Tutorial/Matplotlib (Python • PySpark)

Question asked by aashish on Nov 27, 2017
Latest reply on Nov 27, 2017 by cathy

Getting below errors while running Zeppelin Tutorial/Matplotlib (Python • PySpark) .

java.lang.NullPointerException
at org.apache.zeppelin.spark.Utils.invokeMethod(Utils.java:38)
at org.apache.zeppelin.spark.Utils.invokeMethod(Utils.java:33)
at org.apache.zeppelin.spark.SparkInterpreter.createSparkContext_2(SparkInterpreter.java:391)
at org.apache.zeppelin.spark.SparkInterpreter.createSparkContext(SparkInterpreter.java:380)
at org.apache.zeppelin.spark.SparkInterpreter.getSparkContext(SparkInterpreter.java:146)
at org.apache.zeppelin.spark.SparkInterpreter.open(SparkInterpreter.java:828)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:70)
at org.apache.zeppelin.spark.PySparkInterpreter.getSparkInterpreter(PySparkInterpreter.java:564)
at org.apache.zeppelin.spark.PySparkInterpreter.createGatewayServerAndStartScript(PySparkInterpreter.java:208)
at org.apache.zeppelin.spark.PySparkInterpreter.open(PySparkInterpreter.java:162)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:70)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:491)
at org.apache.zeppelin.scheduler.Job.run(Job.java:175)
at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Below parameters set in /opt/zeppelin/zeppelin-0.7.2-bin-all/conf/zeppelin-env.sh
export SPARK_HOME=/opt/mapr/spark/spark-2.1.0
export HADOOP_HOME=/opt/mapr/hadoop/hadoop-2.7.0
export HADOOP_CONF_DIR=/opt/mapr/hadoop/hadoop-2.7.0
export PYTHONPATH=/usr/local/bin:/opt/mapr/spark/spark-2.1.0/python:/opt/mapr/spark/spark-2.1.0/python/lib/py4j-0.10.4-src.zip
export PYSPARK_PYTHON=/usr/local/bin/python2.7:/opt/mapr/spark/spark-2.1.0/bin:/opt/zeppelin/zeppelin-0.7.2-bin-all/interpreter/lib/python/:/usr/local/bin:/opt/mapr/hadoop/hadoop-2.7.0
Any inputs to resolve this issue.

Outcomes