datastax java driver - Which additional libraries are required for client compression? -
the datastax java driver supports client-node connection compression using snappy , lz4. when starting java driver states
warn [2015-04-28 16:13:59,906] com.datastax.driver.core.framecompressor: cannot find lz4 class, should make sure lz4 library in classpath if intend use it. lz4 compression not available protocol.
two questions:
- which "lz4 library" driver referring in above log message? there maven repo perhaps?
- i notice driver
pom.xml
doesn't have dependency on snappy library. compiled library? or there external library needed available in class loader?
the compression libraries defined in driver-core pom.
note optional. idea users don't need compression don't have drag dependencies. if use lz4 or snappy, need declare explicit dependency on relevant library in own pom (or equivalent).
the warn message states lz4 library not in classpath, fine if you're not going use lz4. in fact warning bit premature , should check presence of libraries when tries use compression, , that's java-697 created for. available in next release of driver.
Comments
Post a Comment