Hi,
 
Can someone Please help me?
 
Using Cassandra 0.6.6 version on Linux System.
 
I can Manually start Cassandra and can run the Junit tests(can see all the data from cli). However when i try to start Cassandra from a test (with @Beforeclass)  getting Connection refused error.
 
Is there a way to automate start/stop of Cassandra ?
 
Error:
org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
        at org.apache.thrift.transport.TSocket.open(TSocket.java:185)
        at com.xp.odm.manager.index.CassandraIndex.addIndexEntry(Unknown Source)
        at com.xp.odm.manager.index.CassandraIndex.addBlob(Unknown Source)
        at com.xp.odm.manager.index.IndexTest$RunThread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:180)
        ... 3 more
org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
 
Thanks,
-Ram.