Class 将 Amazon AWS Athena 连接到 R-Server 时未找到错误

Class not found Error while connecting Amazon AWS Athena to R-Server

我正在尝试将 R-Server 连接到 Athena。但不能这样做。我遵循了这里的指南:https://www.r-bloggers.com/interacting-with-amazon-athena-from-r/

同时 运行 代码:

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="'")

我 运行 遇到了这个错误

Error in .jfindClass(as.character(driverClass)[1]) : class not found

我还参考了之前在 Whosebug 上发布的关于此问题的问题,但没有帮助。任何帮助将不胜感激。

提前致谢。

您应该尝试使用本教程: https://aws.amazon.com/blogs/big-data/running-r-on-amazon-athena/

它对我有用:)

此致。