Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将Amazon AWS Athena连接到R-Server时出现类未找到错误_R_Jdbc_Amazon Athena - Fatal编程技术网

将Amazon AWS Athena连接到R-Server时出现类未找到错误

将Amazon AWS Athena连接到R-Server时出现类未找到错误,r,jdbc,amazon-athena,R,Jdbc,Amazon Athena,我正在尝试将R-Server连接到雅典娜。但我们不能这样做。我从这里开始遵循指南: 运行代码时: URL <- 'https://s3.amazonaws.com/athena-downloads/drivers/AthenaJDBC41-1.0.0.jar' fil <- basename(URL) if (!file.exists(fil)) download.file(URL, fil,method="curl",mode="wb") library(RJDBC) libr

我正在尝试将R-Server连接到雅典娜。但我们不能这样做。我从这里开始遵循指南:

运行代码时:

URL <- 'https://s3.amazonaws.com/athena-downloads/drivers/AthenaJDBC41-1.0.0.jar'
fil <- basename(URL)
if (!file.exists(fil)) download.file(URL, fil,method="curl",mode="wb")


library(RJDBC)
library(dplyr)
library(rJava)

drv <- JDBC(driverClass="com.amazonaws.athena.jdbc.AthenaDriver", fil, identifier.quote="'")
我也提到了Stackoverflow上的前一个问题,但没有帮助。任何帮助都将不胜感激


提前感谢。

您应该尝试使用本教程:

它对我起了作用:)


问候。

你好。我遵循了那个教程本身。但我仍然面临着“在.jfindClass(as.character(driverClass)[1]):类未找到中出错”的错误。是因为我在运行Java1.7吗?根据AWS文档,我应该运行V1.8吗?
Error in .jfindClass(as.character(driverClass)[1]) : class not found