Cassandra NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction

若如初见. 提交于 2020-01-14 13:46:13

问题


cluster = Cluster.builder()                                                    
                .addContactPoint("localhost")
                .build();

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction

The only jars I have in my path are the 2 cassandra java driver jars cassandra-driver-core-2.1.10.3.jar and cassandra-driver-mapping-2.1.10.3.jar

Thanks


回答1:


The issue is with missing guava.jar. Adding this in the class path solved (this) issue. Overall issue is lack of suitable DataSatx documentaion



来源:https://stackoverflow.com/questions/40693212/cassandra-noclassdeffounderror-com-google-common-util-concurrent-asyncfunction

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