Can someone help me debug this problem?
Before I explain my particular problem, i'd like to point out that it
seems as though it may be a compatibility issue between my Windows
setup (from which i'm running the program from) and my Ubuntu server
(where lone Cassandra node is located). That hypothesis comes from me
reading this (which is basically the problem I have):
http://stackoverflow.com/questions/3168261/cant-connect-to-cassandra-nodecontext-killing-all-pooled-connections-for-sessi
As for my specific problem:
Pelops cannot even seem to connect to my Cassandra node at port 9160.
I can connect remotely to my server and verify that Cassandra is
listening on that port by connecting to it through the CLI. Here is
the part of the stacktrace pertinent to the problem:
org.scale7.cassandra.pelops.pool.CommonsBackedPool - A
TTransportException was thrown while attempting to create a connection
to 'XXX.XXX.X.XXX'. This node will be suspended for 10000ms. Trying
another node...
org.apache.thrift.transport.TTransportException:
java.net.ConnectException: Connection refused: connect
at org.apache.thrift.transport.TSocket.open(TSocket.java:185)
at
org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:
81)
at org.scale7.cassandra.pelops.Connection.open(Connection.java:
93)
at org.scale7.cassandra.pelops.pool.CommonsBackedPool
$ConnectionFactory.makeObject(CommonsBackedPool.java:891)
at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:
1190)
at
org.scale7.cassandra.pelops.pool.CommonsBackedPool.getConnectionExcept(CommonsBackedPool.java:
316)
at
org.scale7.cassandra.pelops.Operand.tryOperation(Operand.java:73)
at
org.scale7.cassandra.pelops.Selector.getColumnCount(Selector.java:278)
at
org.scale7.cassandra.pelops.Selector.getColumnCount(Selector.java:88)
I only have one node so it does this a couple of times before giving
me this:
org.scale7.cassandra.pelops.pool.CommonsBackedPool - Failed to get a
connection within the maximum allowed wait time. Try increasing the
either the number of allowed connections or the max wait time.
Is this a Pelops-specific problem? I hope not, I really like its
simplicity. In any case, if someone could take a minute or two to help
me out I'd be very grateful.