Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

wrt Your Tutorial: After creating spark2, following your %spark2.spark, or just %spark2 gets the following error (not exactly your java.lang.NoClassDefFoundError:

Highlighted

wrt Your Tutorial: After creating spark2, following your %spark2.spark, or just %spark2 gets the following error (not exactly your java.lang.NoClassDefFoundError:

New Contributor

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:398) at org.apache.zeppelin.spark.SparkInterpreter.createSparkContext(SparkInterpreter.java:387) at org.apache.zeppelin.spark.SparkInterpreter.getSparkContext(SparkInterpreter.java:146) at org.apache.zeppelin.spark.SparkInterpreter.open(SparkInterpreter.java:843) 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)

ERROR Took 3 sec. Last updated by anonymous at October 08 2017, 5:16:55 PM.

3 REPLIES 3
Highlighted

Re: wrt Your Tutorial: After creating spark2, following your %spark2.spark, or just %spark2 gets the following error (not exactly your java.lang.NoClassDefFoundError:

Contributor

@Robert Hryniewicz I get the same error as above when running the following. Ambari shows all Spark2 services up and running, no alerts.

%spark2.spark

spark.version

Sandbox version is

[root@sandbox ~]# sandbox-version
Sandbox information:
Created on: 28_07_2017_14_21_49 for
Hadoop stack version:  Hadoop 2.7.3.2.6.1.0-129
Ambari Version: 2.5.1.0-159
Ambari Hash: 7a4fc4d6ab88f423fb6e6d960c26a961572d0507
Ambari build:  Release : 159
Java version:  1.8.0_141
OS Version:  CentOS release 6.9 (Final)

Re: wrt Your Tutorial: After creating spark2, following your %spark2.spark, or just %spark2 gets the following error (not exactly your java.lang.NoClassDefFoundError:

Contributor

@Robert Hryniewicz

Resolution appears to be starting Hive.

Highlighted

Re: wrt Your Tutorial: After creating spark2, following your %spark2.spark, or just %spark2 gets the following error (not exactly your java.lang.NoClassDefFoundError:

@Steven Tam @Dave Welden Thanks for reporting this (and the resolution using Hive). We'll get this fixed and rolled back out - I reported this on the repo we use to develop tutorials/docs https://github.com/hortonworks/data-tutorials/issues/404

Don't have an account?
Coming from Hortonworks? Activate your account here