Package for accessing Cassandra database in R

穿精又带淫゛_ 提交于 2019-12-20 04:50:25

问题


I have tried RCassandra and RJDBC but unfortunately it seems that these bindings work only with the old Cassandra 1.x. Is there any binding for Cassandra 2.x in R language?


回答1:


This is not true, the current version of RJDBC works with Cassandra 2.X.

Download latest release, with C* 2.x compatibility : cassandra-jdbc-2.1.1.jar

However there's one caveat that you have to also download the java dependencies and put them into your JAVA ClassPath (MacOS: /Library/Java/Extensions), otherwise you would encounter the painful Error in .jfindClass(as.character(driverClass)[1]) : class not found when initializing JDBC driver in R.

Include the Cassandra JDBC dependencies in your classpath : download dependencies

As of the RCassandra package, right now it's still too primitive compared to RJDBC.



来源:https://stackoverflow.com/questions/27605391/package-for-accessing-cassandra-database-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!