Hi, Please attach the source to have deeper look at it.
Ferenc From: Robert Wille [mailto:rwi...@fold3.com] Sent: Thursday, November 21, 2013 7:11 PM To: user@cassandra.apache.org Subject: Intermittent connection error I intermittently get the following error when I try to execute my first query after connecting: Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried) at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:64) at com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:271) at com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:187) at com.datastax.driver.core.Session.execute(Session.java:126) at com.datastax.driver.core.Session.execute(Session.java:77) The odd part is the "(no host was tried)". I definitely have provided it with a host, since this exact same code works most of the time. I don't know if this might be related to a question I posted earlier, which I haven't been able to resolve yet. Whenever I issue a truncate command, I get the error "Unable to complete request: one or more nodes were unavailable". I've got a single node with all empty tables. It is definitely up and available, since most of the time I can connect and do stuff (except truncate, which I can never do). The only thing in the logs that looks relevant is this: INFO [HANDSHAKE-/192.168.98.121] 2013-11-20 11:36:59,064 OutboundTcpConnection.java (line 386) Handshaking version with /192.168.98.121 INFO [HANDSHAKE-/192.168.98.121] 2013-11-20 11:37:04,064 OutboundTcpConnection.java (line 395) Cannot handshake version with /192.168.98.121 I'm running Cassandra 2.0.2. Any help would be most appreciated. Thanks Robert