MATLAB无法与Cassandra连接



我们有一个cassandra集群,并在测试环境中运行。集群可以通过命令行访问,但MATLAB无法连接。

连接字符串:-

contactPoints=";172.31.61.211〃;;conn=cassandra(联系人(cassandra与属性:

Cluster: "RQ_1"
HostAddresses: "172.31.61.211"
LocalDataCenter: "DC_1"
Keyspaces: ["dse_insights"]

错误消息:-

使用cassandra时出错(第130行(发生Java异常:java.lang.NoSuchMethodError.com.google.common.base.Objects.firstNonNull(Ljava/lang/Object;Ljava/lang/Object(Ljava/lang/Object;网址:com.datastax.driver.core.policies.policies$Builder.build(policies.java:285(网址:com.datatax.driver.core.Cluster$Builder.getConfiguration(Cluster.java:1246(网址:com.datatax.driver.core.Cluster.(Cluster.java:116(网址:com.datatax.driver.core.Cluster.buildFrom(Cluster.java:181(网址:com.datastax.driver.core.Cluster$Builder.build(Cluster.java:1264(网址:com.mathworks.toolbox.cassandra.CassandraConnection.(CassandraConnection.java:43(

对我来说,它看起来像是math-plab使用的库版本和Cassandra Java驱动程序之间的冲突。特别是在番石榴版本之间-mathlab使用与驱动程序冲突的旧版本或新版本。

此外,mathlab docs建议切换到基于C++驱动程序(doc(的新集成

最新更新