Which spark version do you use ? arvindsheri...@northwesternmutual.com <arvindsheri...@northwesternmutual.com> 于2019年4月29日周一 上午10:23写道:
> https://zeppelin.apache.org/docs/0.8.1/interpreter/r.html > > > > I am trying out a basic command as shown in the link above and I get the > following error. Any help will be appreciated. > > > > *%spark.r * > > *2+2* > > > > *java.lang.ClassCastException: scala.Tuple2 cannot be cast to > java.lang.Integer* at > scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:101) at > org.apache.spark.SparkRBackend$.init(SparkRBackend.scala:42) at > org.apache.spark.SparkRBackend.init(SparkRBackend.scala) at > org.apache.zeppelin.spark.SparkRInterpreter.open(SparkRInterpreter.java:88) > at > org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69) > at > org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:616) > at org.apache.zeppelin.scheduler.Job.run(Job.java:188) at > org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:140) > 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) > > > > Thanks > > Arvind > > > This e-mail and any attachments may contain confidential information of > Northwestern Mutual. If you are not the intended recipient of this message, > be aware that any disclosure, copying, distribution or use of this e-mail > and any attachments is prohibited. If you have received this e-mail in > error, please notify Northwestern Mutual immediately by returning it to the > sender and delete all copies from your system. Please be advised that > communications with {SECURE MESSAGE} in the subject line have been sent > using a secure messaging system. Communications that do not have this tag > may not be secure and could be observed by a third party. Thank you for > your cooperation. > > > -- Best Regards Jeff Zhang