im trying to connect cassandra using Hector:
public class Main { public static void main(String[] args) { StringSerializer stringSerializer = StringSerializer.get(); Cluster cluster = HFactory.getOrCreateCluster("Test Cluster", "localhost:9160"); Keyspace keyspace = HFactory.createKeyspace("Keyspace1", cluster); Mutator<String> mutator = HFactory.createMutator(keyspace, stringSerializer); mutator.insert("jsmith", "Standard1", HFactory.createStringColumn("first", "John")); } }
Problem:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: See http://www.slf4j.org/codes.html
How can i decide?
I until the last patience with hector and cassandra, I tried to connect and could not. I run the twissjava sample and it works, but when I extend the main class to make my own test, it does not start.
source share