Ok, I talked to the DSE architect and he told me that they had to do a security
patch (spark version example -> 2.2.2.5), which broke this piece of zeppelin
code - bolded.
https://github.com/apache/zeppelin/blob/735064fdc57ae958fabae85b399bb5af3cb79144/spark/interpreter/src/main/scala/org/apache/spark/SparkRBackend.scala#L34-L44
def init(version: SparkVersion) : Unit = {
val rBackendClass = classOf[RBackend]
if (version.isSecretSocketSupported) {
val result =
rBackendClass.getMethod("init").invoke(backend).asInstanceOf[Tuple2[Int,
Object]]
portNumber = result._1
val rAuthHelper = result._2
secret =
rAuthHelper.getClass.getMethod("secret").invoke(rAuthHelper).asInstanceOf[String]
} else {
portNumber =
rBackendClass.getMethod("init").invoke(backend).asInstanceOf[Int]
}
}
From: "[email protected]"
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Monday, April 29, 2019 at 9:01 AM
To: "[email protected]" <[email protected]>
Subject: Re: [EXTERNAL] Re: Issue working with R/SparkR
DataStax distribution version 6.7
From: Jeff Zhang <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Sunday, April 28, 2019 at 11:01 PM
To: users <[email protected]>
Subject: [EXTERNAL] Re: Issue working with R/SparkR
Which spark version do you use ?
[email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
于2019年4月29日周一 上午10:23写道:
https://zeppelin.apache.org/docs/0.8.1/interpreter/r.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__zeppelin.apache.org_docs_0.8.1_interpreter_r.html&d=DwMFaQ&c=oBIBfyrVf5fVcKOfTTdY_d7WoqYVCfQW6jezwvkj5jg&r=2ozYxxrO5uy6i7CP-nMc0wdBTNfkSGa4age9CqpA0b3LBZZ_7ZITfmsqWijkzea1&m=R9XdjivdKYjYFmH_RUlm1VSWtiBcfNWHMgP6hbxtMJI&s=-p1MV9gJn5XAIepg-nkje92IM9e_kPaXsv8m7AYXSnA&e=>
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
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.
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.