用于访问R中的Cassandra数据库的软件包 [英] Package for accessing Cassandra database in R

查看:398
本文介绍了用于访问R中的Cassandra数据库的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过 RCassandra RJDBC 但不幸的是,这些绑定似乎只适用于旧的Cassandra 1 。X。

解决方案

这不是真的,当前版本的 RJDBC 与Cassandra 2配合使用。 X。


下载具有C * 2.x兼容性的最新版本:cassandra-jdbc-2.1.1.jar

$但是有一个警告,你还必须下载java依赖项,并将它们放入您的JAVA类路径(MacOS:/ Library / Java / Extensions),否则在R中初始化JDBC驱动程序时,您会遇到痛苦的 .jfindClass(as.character(driverClass)[1])中的错误:
$ b


在类路径中包含Cassandra JDBC依赖项:


从RCassandra包,现在它相比RJDBC仍然太原始。


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?

解决方案

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.

这篇关于用于访问R中的Cassandra数据库的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆