我试图连接到bigr:
connected <- bigr.connect(
host = hostname,
user = username,
password = password,
ssl = TRUE,
trustStorePath = paste(projdir, "/truststore.jks", sep=""),
trustStorePassword = "mypassword",
keyManager = "SunX509"
)
但是,我收到以下错误:
Error: BigR[bigr.connect]: Required library 'BigRResultSet' could not be found.
注意:libR中存在BigRResultSet.jar:
$ ls -l lib/bigr/
total 1844
-rw-rw-r-- 1 vagrant vagrant 6587 Jun 21 19:37 BigRResultSet.jar
知道可能导致此问题的原因是什么?
答案 0 :(得分:1)
我找到答案(至少对于OSX 10.11.1),首先运行
sudo R CMD javareconf
在命令行上,请务必记下您的JAVA_HOME,然后下载并安装最新版本的rJava
wget http://www.rforge.net/rJava/snapshot/rJava_0.9-7.tar.gz
R CMD INSTALL rJava_0.9-7.tar.gz
为bigr做同样的事情,然后打开RStudio并运行以下
dyn.load('/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/server/libjvm.dylib')
require(rJava)
library(bigr)
conn <- bigr.connect(host="xxxx",user="xxxx", password="xxxx")
使用你的JAVA_HOME(部分到../jre)。找到了答案How can I make rJava use the newer version of java on osx?和http://charlotte-ngs.github.io/2016/01/MacOsXrJavaProblem.html。