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.

Problem excuting the Zeppelin SparkR code provided as samples

Highlighted

Problem excuting the Zeppelin SparkR code provided as samples

New Contributor

Running HDP 2.6.5 and Spark 2.11

R-3.4.4

Sample code attempted to be executed:

%spark2.r


print("%html <h3>Hello HTML</h3>")
print("<font color='blue'><span class='fa fa-bars'> Easy...</font></span>")
for (i in 1:10) {
print(paste0("<h4>", i, " * 2 = ", i*2, "</h4>"))
}

Results:

java.lang.NoSuchMethodError: scala.runtime.ObjectRef.create(Ljava/lang/Object;)Lscala/runtime/ObjectRef; at org.apache.zeppelin.spark.ZeppelinRDisplay$.htmlDisplay(ZeppelinRDisplay.scala:91) at org.apache.zeppelin.spark.ZeppelinRDisplay$.render(ZeppelinRDisplay.scala:66) at org.apache.zeppelin.spark.ZeppelinRDisplay.render(ZeppelinRDisplay.scala) at org.apache.zeppelin.spark.SparkRInterpreter.interpret(SparkRInterpreter.java:150) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:101) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:502) 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)