如果我尝试在R 3.1.1和RJDBC 0.2-4包中通过OrientDB JDBC连接到OrientDB,我会得到错误。OrientDB启动后,我可以通过OrientStudio执行任何SQL语句。
JDBC驱动程序与OrientDB库位于同一目录。Error on .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], :
java.lang.NoClassDefFoundError: com/orientechnologies/orient/core/db/record/ODatabaseRecord
我使用下面的R代码:
library(RJDBC)
drv <- JDBC(driverClass = "com.orientechnologies.orient.jdbc.OrientJdbcDriver",
classPath ="./orientdb-community-1.7.4/lib/orientdb-jdbc-1.7.jar" )
conn <- dbConnect(drv, "jdbc:orient:remote://localhost/GratefulDeadConcerts", "admin", "admin")
使用OrientDB JDBC Driver 1.7 ALL包