incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rambabu pakala <rampak...@yahoo.com>
Subject Unable to Query data(get) in cassandra-cli (0.6.6)....
Date Wed, 08 Dec 2010 21:19:45 GMT
Hi,
 
Using EmbeddedCassandra Serivce inside Junit Tests(BEFORECLASS) and tests are running fine
and no issues. Code to start the cassandra is something like the following:
 
BUT the issue is when i try to get the data using cassandra-cli, i am not getting any results.
the data cleanup happens only in BEFORECLASS.
 
So any thing I am missing here and what is the reason for unable to get the data?
 
try {
CassandraServiceDataCleaner cleaner = new CassandraServiceDataCleaner();
cleaner.prepare();
EmbeddedCassandraService cassandra = new EmbeddedCassandraService();
cassandra.init();
Thread t = new Thread(cassandra);
t.setDaemon(true);
t.start();

}
catch (Exception e) {
e.printStackTrace();
}


      
Mime
View raw message