Getting cassandra connection error

I cannot connect to Cassandra (ver2.0.5) using Eclipse. Here is the complete error log:

16: 06: 59.818 [main] WARN cddriver.core.FrameCompressor - Can not find the Snappy class, you need to make sure that the Snappy library is in the classpath if you intend to use it. Snappy compression will not be available for the protocol.

[...] omitted for brevity

+3
source share
3 answers

Use maven to import snappy / lz4 or any other compression you use.

Lz4

Snappy

+9
source

I just got into the same problems, it seems, due to some update of libs. Here is my solution by adding these dependencies to POM.xml.

groupid / artifactId / version:

  • com.datastax.cassandra cassandra-driver-core 2.1.0
  • com.google.guava guava 16.0.1 io.netty netty 3.9.0.Final
  • com.codahale.metrics metrics-core 3.0.2
  • org.slf4j slf4j-api 1.7.5
  • org.slf4j slf4j-simple 1.6.1
  • net.jpountz.lz4 lz4 1.2.0
  • org.xerial.snappy snappy-java 1.1.1.3

3 Datastax, . !

+2

. , , , JAR.

Datastax 2.0 , 1.x . 1.x , , jar cassandra.

0

All Articles