<?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 Spark Interpreter fails with Null Pointer Exception,Spark Interpreter Null Pointer Exception in Sandbox in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198905#M81126</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am learning  tutorial for HDP sandbox related to zeppelin :&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/tutorial/hands-on-tour-of-apache-spark-in-5-minutes/" target="_blank"&gt;https://hortonworks.com/tutorial/hands-on-tour-of-apache-spark-in-5-minutes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I downloaded and started notebook, saved all interpreters, they all were blue. I did not change any Zeppelin or Spark configs. However, first code paragraph fails with Null Pointer Exception.&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:348)
	at org.apache.zeppelin.spark.SparkInterpreter.createSparkContext(SparkInterpreter.java:337)
	at org.apache.zeppelin.spark.SparkInterpreter.getSparkContext(SparkInterpreter.java:142)
	at org.apache.zeppelin.spark.SparkInterpreter.open(SparkInterpreter.java:790)
	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
	at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:493)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)&lt;/PRE&gt;
&lt;PRE&gt;%spark2.spark
spark.version
&lt;/PRE&gt;&lt;P&gt;What could be wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 19:22:16 GMT</pubDate>
    <dc:creator>snikitin</dc:creator>
    <dc:date>2018-07-25T19:22:16Z</dc:date>
    <item>
      <title>Spark Interpreter fails with Null Pointer Exception,Spark Interpreter Null Pointer Exception in Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198905#M81126</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am learning  tutorial for HDP sandbox related to zeppelin :&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/tutorial/hands-on-tour-of-apache-spark-in-5-minutes/" target="_blank"&gt;https://hortonworks.com/tutorial/hands-on-tour-of-apache-spark-in-5-minutes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I downloaded and started notebook, saved all interpreters, they all were blue. I did not change any Zeppelin or Spark configs. However, first code paragraph fails with Null Pointer Exception.&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:348)
	at org.apache.zeppelin.spark.SparkInterpreter.createSparkContext(SparkInterpreter.java:337)
	at org.apache.zeppelin.spark.SparkInterpreter.getSparkContext(SparkInterpreter.java:142)
	at org.apache.zeppelin.spark.SparkInterpreter.open(SparkInterpreter.java:790)
	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
	at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:493)
	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:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)&lt;/PRE&gt;
&lt;PRE&gt;%spark2.spark
spark.version
&lt;/PRE&gt;&lt;P&gt;What could be wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 19:22:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198905#M81126</guid>
      <dc:creator>snikitin</dc:creator>
      <dc:date>2018-07-25T19:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Interpreter fails with Null Pointer Exception,Spark Interpreter Null Pointer Exception in Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198906#M81127</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/89169/snikitin.html" nodeid="89169"&gt;@Stanislav Nikitin&lt;/A&gt; Usually you will see these errors if the spark interpreter is not able to start/lunch a spark application in yarn. This could be due several reasons. Could you try to restart your sandbox and test again? Also you can check the spark interpreter log under /var/log/zeppelin directory.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:42:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198906#M81127</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-07-25T20:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Interpreter fails with Null Pointer Exception,Spark Interpreter Null Pointer Exception in Sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198907#M81128</link>
      <description>&lt;P&gt;Sorry, it was totally my mistake. I did modify YARN scheduler configuration in a previous tutorial and this affected on spark. I created sub-queues in scheduler, but did not add spark to any of them.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 21:23:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Interpreter-fails-with-Null-Pointer-Exception-Spark/m-p/198907#M81128</guid>
      <dc:creator>snikitin</dc:creator>
      <dc:date>2018-07-25T21:23:52Z</dc:date>
    </item>
  </channel>
</rss>

