RJDBC 未找到驱动程序 class
RJDBC not finding driver class
我正在尝试通过 RJDBC
程序包访问 athena,但我不断收到以下错误:
.jclassLoader()$setDebug(1L)
drv <- JDBC(driverClass = "com.amazonaws.athena.jdbc.AthenaDriver",
"C:/Users/falvarenga/Downloads/AthenaJDBC42_2.0.7.jar",
identifier.quote="'")
RJavaClassLoader: added 'C:/Users/falvarenga/Downloads/AthenaJDBC42_2.0.7.jar' to the URL class path loader
RJavaClassLoader: adding Java archive file 'C:/Users/falvarenga/Downloads/AthenaJDBC42_2.0.7.jar' to the internal class path
RJavaClassLoader: added 'C:/Users/falvarenga/Documents/R/R-3.5.3/library/RJDBC/java/RJDBC.jar' to the URL class path loader
RJavaClassLoader: adding Java archive file 'C:/Users/falvarenga/Documents/R/R-3.5.3/library/RJDBC/java/RJDBC.jar' to the internal class path
RJavaClassLoader@33909752.findClass(com.amazonaws.athena.jdbc.AthenaDriver)
- URL loader did not find it: java.lang.ClassNotFoundException: com.amazonaws.athena.jdbc.AthenaDriver
RJavaClassLoader.findClass("com.amazonaws.athena.jdbc.AthenaDriver")
- trying class path "C:\Users\falvarenga\Documents\R\R-3.5.3\library\rJava\java"
Directory, can get 'C:\Users\falvarenga\Documents\R\R-3.5.3\library\rJava\java\com\amazonaws\athena\jdbc\AthenaDriver.class'? NO
- trying class path "C:\Users\falvarenga\Downloads\AthenaJDBC42_2.0.7.jar"
JAR file, can get 'com/amazonaws/athena/jdbc/AthenaDriver'? NO
- trying class path "C:\Users\falvarenga\Documents\R\R-3.5.3\library\RJDBC\java\RJDBC.jar"
JAR file, can get 'com/amazonaws/athena/jdbc/AthenaDriver'? NO
>> ClassNotFoundException
我在这里错过了什么?
我创建了 AWR.Athena
包来管理使用 DBI + rJava 时的 jar / classpath 设置,你可以试试看。
install.packages("AWR.Athena")
我正在尝试通过 RJDBC
程序包访问 athena,但我不断收到以下错误:
.jclassLoader()$setDebug(1L)
drv <- JDBC(driverClass = "com.amazonaws.athena.jdbc.AthenaDriver",
"C:/Users/falvarenga/Downloads/AthenaJDBC42_2.0.7.jar",
identifier.quote="'")
RJavaClassLoader: added 'C:/Users/falvarenga/Downloads/AthenaJDBC42_2.0.7.jar' to the URL class path loader
RJavaClassLoader: adding Java archive file 'C:/Users/falvarenga/Downloads/AthenaJDBC42_2.0.7.jar' to the internal class path
RJavaClassLoader: added 'C:/Users/falvarenga/Documents/R/R-3.5.3/library/RJDBC/java/RJDBC.jar' to the URL class path loader
RJavaClassLoader: adding Java archive file 'C:/Users/falvarenga/Documents/R/R-3.5.3/library/RJDBC/java/RJDBC.jar' to the internal class path
RJavaClassLoader@33909752.findClass(com.amazonaws.athena.jdbc.AthenaDriver)
- URL loader did not find it: java.lang.ClassNotFoundException: com.amazonaws.athena.jdbc.AthenaDriver
RJavaClassLoader.findClass("com.amazonaws.athena.jdbc.AthenaDriver")
- trying class path "C:\Users\falvarenga\Documents\R\R-3.5.3\library\rJava\java"
Directory, can get 'C:\Users\falvarenga\Documents\R\R-3.5.3\library\rJava\java\com\amazonaws\athena\jdbc\AthenaDriver.class'? NO
- trying class path "C:\Users\falvarenga\Downloads\AthenaJDBC42_2.0.7.jar"
JAR file, can get 'com/amazonaws/athena/jdbc/AthenaDriver'? NO
- trying class path "C:\Users\falvarenga\Documents\R\R-3.5.3\library\RJDBC\java\RJDBC.jar"
JAR file, can get 'com/amazonaws/athena/jdbc/AthenaDriver'? NO
>> ClassNotFoundException
我在这里错过了什么?
我创建了 AWR.Athena
包来管理使用 DBI + rJava 时的 jar / classpath 设置,你可以试试看。
install.packages("AWR.Athena")