我正在尝试通过由Hector驱动的Java客户端连接到本地cassandra实例。尝试连接后,我尝试读取行。代码段如下
群集myCluster = HFactory.getOrCreateCluster(“test”,“localhost:9160”);
KeyspaceDefinition keySpaceDef = myCluster.describeKeyspace(“testkeyspace”);
.....
然而,连接因此错误而失败
线程“main”中的异常java.lang.NoSuchFieldError:DEFAULT_MEMTABLE_OPERATIONS_IN_MILLIONS at me.prettyprint.cassandra.service.ThriftCfDef。(ThriftCfDef.java:65) at me.prettyprint.cassandra.service.ThriftCfDef.fromThriftList(ThriftCfDef.java:144) at me.prettyprint.cassandra.service.ThriftKsDef。(ThriftKsDef.java:34) at me.prettyprint.cassandra.service.AbstractCluster $ 4.execute(AbstractCluster.java:192) at me.prettyprint.cassandra.service.AbstractCluster $ 4.execute(AbstractCluster.java:187) at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:101) at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:232) at me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:201)
我在我的pom.xml中有cassandra,thrift作为依赖项。关于什么可能出错的任何线索?