Zeppelin R 解释器无法执行任何操作
Zeppelin R interpreter fails to do anything
我正在 运行ning Zeppelin 0.6.1,它的 sparkR 解释器无法执行任何操作。它在单元格执行状态上显示错误,但没有说明是什么错误。我将其二进制包与所有解释器一起使用 zeppelin-0.6.1-bin-all.tgz。尝试了很多东西,但不知道发生了什么。有人 运行 Zeppelin 中的 R interpereter 成功了吗?
在日志中它显示了这个错误
....
....
....
> library(SparkR)
Attaching package: ‘SparkR’
The following objects are masked from ‘package:stats’:
cov, filter, lag, na.omit, predict, sd, var
The following objects are masked from ‘package:base’:
colnames, colnames
>
> SparkR:::connectBackend("localhost", port)
description class mode text
"->localhost:54905" "sockconn" "wb" "binary"
opened can read can write
"opened" "yes" "yes"
>
> # scStartTime is needed by R/pkg/R/sparkR.R
> assign(".scStartTime", as.integer(Sys.time()), envir = SparkR:::.sparkREnv)
>
> # getZeppelinR
> .zeppelinR = SparkR:::callJStatic("org.apache.zeppelin.spark.ZeppelinR", "getZeppelinR", hashCode)
at org.apache.zeppelin.spark.ZeppelinR.waitForRScriptInitialized(ZeppelinR.java:291)
at org.apache.zeppelin.spark.ZeppelinR.request(ZeppelinR.java:231)
at org.apache.zeppelin.spark.ZeppelinR.eval(ZeppelinR.java:179)
at org.apache.zeppelin.spark.ZeppelinR.open(ZeppelinR.java:168)
at org.apache.zeppelin.spark.SparkRInterpreter.open(SparkRInterpreter.java:79)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.getProgress(LazyOpenInterpreter.java:110)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.getProgress(RemoteInterpreterServer.java:404)
at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$getProgress.getResult(RemoteInterpreterService.java:1509)
at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$getProgress.getResult(RemoteInterpreterService.java:1494)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
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)
我发现的是:我的 SPARK_HOME 变量设置不正确。设置它解决了问题。在另一个设置中,我虔诚地遵循了此处提到的步骤,并且效果很好。
Zeppelin R interpreter
SPARK_HOME 和 R 安装是两个主要的事情,如果正确完成应该确保在 Zeppelin 上流畅的 SparkR 体验。
我正在 运行ning Zeppelin 0.6.1,它的 sparkR 解释器无法执行任何操作。它在单元格执行状态上显示错误,但没有说明是什么错误。我将其二进制包与所有解释器一起使用 zeppelin-0.6.1-bin-all.tgz。尝试了很多东西,但不知道发生了什么。有人 运行 Zeppelin 中的 R interpereter 成功了吗?
在日志中它显示了这个错误
.... .... .... > library(SparkR) Attaching package: ‘SparkR’ The following objects are masked from ‘package:stats’: cov, filter, lag, na.omit, predict, sd, var The following objects are masked from ‘package:base’: colnames, colnames > > SparkR:::connectBackend("localhost", port) description class mode text "->localhost:54905" "sockconn" "wb" "binary" opened can read can write "opened" "yes" "yes" > > # scStartTime is needed by R/pkg/R/sparkR.R > assign(".scStartTime", as.integer(Sys.time()), envir = SparkR:::.sparkREnv) > > # getZeppelinR > .zeppelinR = SparkR:::callJStatic("org.apache.zeppelin.spark.ZeppelinR", "getZeppelinR", hashCode) at org.apache.zeppelin.spark.ZeppelinR.waitForRScriptInitialized(ZeppelinR.java:291) at org.apache.zeppelin.spark.ZeppelinR.request(ZeppelinR.java:231) at org.apache.zeppelin.spark.ZeppelinR.eval(ZeppelinR.java:179) at org.apache.zeppelin.spark.ZeppelinR.open(ZeppelinR.java:168) at org.apache.zeppelin.spark.SparkRInterpreter.open(SparkRInterpreter.java:79) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69) at org.apache.zeppelin.interpreter.LazyOpenInterpreter.getProgress(LazyOpenInterpreter.java:110) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.getProgress(RemoteInterpreterServer.java:404) at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$getProgress.getResult(RemoteInterpreterService.java:1509) at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$getProgress.getResult(RemoteInterpreterService.java:1494) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285) 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)
我发现的是:我的 SPARK_HOME 变量设置不正确。设置它解决了问题。在另一个设置中,我虔诚地遵循了此处提到的步骤,并且效果很好。 Zeppelin R interpreter
SPARK_HOME 和 R 安装是两个主要的事情,如果正确完成应该确保在 Zeppelin 上流畅的 SparkR 体验。