You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by rambabu pakala <ra...@yahoo.com> on 2010/12/08 22:19:45 UTC

Unable to Query data(get) in cassandra-cli (0.6.6)....

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();
}