Hello everyone,
Currently I am working on a POC which aims to connect my Vert.x web application to Cassandra database, I used this module:
https://github.com/nea/vertx-mod-cassandra-persistorBut I am getting the following error:
[Cassandra Persistor] Booting up...
[Cassandra Persistor] Cannot add hosts ["127.0.0.1"]
java.lang.IllegalStateException: The requested compression is not available (some compression require a JAR to be found in the classpath)
at com.datastax.driver.core.ProtocolOptions.setCompression(ProtocolOptions.java:178)
My source code (copied from the test class of the module) is the following:
JsonObject config = new JsonObject();
config.putArray("hosts", new JsonArray().add("127.0.0.1"));
config.putString("compression", "SNAPPY");
config.putString("retry", "fallthrough");
config.putObject("reconnection", new JsonObject().putString("policy", "constant").putNumber("delay", 1000));
container.deployModule("com.insanitydesign~vertx-mod-cassandra-persistor~0.3.1", config, 1, new AsyncResultHandler<String>() {
public void handle(AsyncResult<String> asyncResult) {
container.logger().info("Does deployment succeded: " +asyncResult.succeeded());
container.logger().info("deploymentID should not be null: "+ asyncResult.result());
}
});Any ideas what the problem might be?
Thanks in advance for you help!
Regards,
Ahmed