<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NullPointerException when running spark on Zeppelin in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NullPointerException-when-running-spark-on-Zeppelin/m-p/191650#M153731</link>
    <description>&lt;P&gt;I am testing spark within zeppelin. But in running tutorial &lt;/P&gt;&lt;PRE&gt;%spark2.spark
spark.verson
&lt;/PRE&gt;&lt;P&gt;It throws the following error:&lt;/P&gt;&lt;PRE&gt;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.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:483)
    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)&lt;/PRE&gt;&lt;P&gt;Then I disable the hive context according to &lt;A href="https://stackoverflow.com/questions/43289067/getting-nullpointerexception-when-running-spark-code-in-zeppelin-0-7-1 "&gt;https://stackoverflow.com/questions/43289067/getting-nullpointerexception-when-running-spark-code-in-zeppelin-0-7-1 &lt;/A&gt; , the same exception is still thrown. &lt;/P&gt;&lt;P&gt;How to solve it? &lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;Update 1:&lt;/P&gt;&lt;P&gt;I have checked the spark interpreter log, and get the following error:&lt;/P&gt;&lt;PRE&gt;requirement failed:/python/lib/pyspark.zip not found;cannot run pyspark application in YARN mode.&lt;/PRE&gt;&lt;P&gt;How to locate this file or config the path?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 09:58:14 GMT</pubDate>
    <dc:creator>darouwan</dc:creator>
    <dc:date>2018-03-23T09:58:14Z</dc:date>
    <item>
      <title>NullPointerException when running spark on Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NullPointerException-when-running-spark-on-Zeppelin/m-p/191650#M153731</link>
      <description>&lt;P&gt;I am testing spark within zeppelin. But in running tutorial &lt;/P&gt;&lt;PRE&gt;%spark2.spark
spark.verson
&lt;/PRE&gt;&lt;P&gt;It throws the following error:&lt;/P&gt;&lt;PRE&gt;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.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:483)
    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)&lt;/PRE&gt;&lt;P&gt;Then I disable the hive context according to &lt;A href="https://stackoverflow.com/questions/43289067/getting-nullpointerexception-when-running-spark-code-in-zeppelin-0-7-1 "&gt;https://stackoverflow.com/questions/43289067/getting-nullpointerexception-when-running-spark-code-in-zeppelin-0-7-1 &lt;/A&gt; , the same exception is still thrown. &lt;/P&gt;&lt;P&gt;How to solve it? &lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;Update 1:&lt;/P&gt;&lt;P&gt;I have checked the spark interpreter log, and get the following error:&lt;/P&gt;&lt;PRE&gt;requirement failed:/python/lib/pyspark.zip not found;cannot run pyspark application in YARN mode.&lt;/PRE&gt;&lt;P&gt;How to locate this file or config the path?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 09:58:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NullPointerException-when-running-spark-on-Zeppelin/m-p/191650#M153731</guid>
      <dc:creator>darouwan</dc:creator>
      <dc:date>2018-03-23T09:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException when running spark on Zeppelin</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NullPointerException-when-running-spark-on-Zeppelin/m-p/191651#M153732</link>
      <description>&lt;P&gt;Fixed it by recovering spark home setting&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 15:23:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NullPointerException-when-running-spark-on-Zeppelin/m-p/191651#M153732</guid>
      <dc:creator>darouwan</dc:creator>
      <dc:date>2018-03-26T15:23:40Z</dc:date>
    </item>
  </channel>
</rss>

