SparkR错误sparkR.init(主= QUOT;地方")在RStudio [英] SparkR Error in sparkR.init(master="local") in RStudio

查看:239
本文介绍了SparkR错误sparkR.init(主= QUOT;地方")在RStudio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了星火分布到第r库Sp​​arkR包。我可以调用下面的命令,它似乎正常工作:库(SparkR)

I have installed the SparkR package from Spark distribution into the R library. I can call the following command and it seems to work properly: library(SparkR)

然而,当我尝试使用以下code,以获得星火背景下,

However, when I try to get the Spark context using the following code,

sc <- sparkR.init(master="local")

有一些时间与下面的消息后失败:

It fails after some time with the following message:

Error in sparkR.init(master = "local") :
   JVM is not ready after 10 seconds

我已经设置JAVA_HOME,我有一个工作RStudio在那里我可以访问诸如GGPLOT2其他包。我不知道为什么它不工作了,我甚至不知道从哪里调查该问题。

I have set JAVA_HOME, and I have a working RStudio where I can access other packages like ggplot2. I don't know why it is not working, and I don't even know where to investigate the issue.

推荐答案

我有同样的问题,我的火花submit.cmd 文件还没有从执行命令线。以下为我工作步骤

I had the same issue and my spark-submit.cmd file was also not executing from the command line. Following steps worked for me

转到您的环境变量和系统变量选择变量名称路径。随着其他值添加 C:/在Windows / System32下/ 用分号隔开。这使我的火花submit.cmd运行命令行,并最终从Rstudio。

Go to your environment variables and in the system variables select variable name PATH. Along with other values add c:/Windows/System32/ separated by a semicolon. This made my spark-submit.cmd run from command line and eventually from the Rstudio.

我已经意识到,我们得到的只是如果未指定所有必需的路径值上面的问题。确保所有的路径值(R,Rtools)是在环境变量中指定。比如我Rtools路径是 C:\\ Rtools \\ BIN; C:\\ Rtools \\ GCC-4.6.3 \\ BIN

I have realized that we get the above issue only if all the required path values are not specified. Ensure all your path values(R, Rtools) are specified in the environment variables. For instance my Rtools path was c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin

我希望这有助于。

这篇关于SparkR错误sparkR.init(主= QUOT;地方&QUOT;)在RStudio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆