com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via DataStax JIRA by Ryan McGuire, 1 year ago
All host(s) tried for query failed (no host was tried)
via Stack Overflow by george_h
, 3 months ago
All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.DriverException: Timeout during read))
via helptothis.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042 (com.datastax.driver.core.ConnectionException: [ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042] Write attempt on defunct connection))
via pr8x.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042 (com.datastax.driver.core.ConnectionException: [ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042] Write attempt on defunct connection))
via xluat.com by Unknown author, 2 years ago
All host(s) tried for query failed (tried: ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042 (com.datastax.driver.core.ConnectionException: [ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042] Write attempt on defunct connection))
via Stack Overflow by user3667052
, 2 years ago
All host(s) tried for query failed (tried: ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042 (com.datastax.driver.core.ConnectionException: [ec2-54-197-xxx-xxx.compute-1.amazonaws.com/54.197.xxx.xxx:9042] Write attempt on defunct connection))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:103)
at com.datastax.driver.core.SessionManager.execute(SessionManager.java:418)
at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:454)
at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:104)
at com.yahoo.ycsb.db.CassandraCQLClient.read(CassandraCQLClient.java:207)
at com.yahoo.ycsb.DBWrapper$1.go(DBWrapper.java:124)
at com.yahoo.ycsb.DBWrapper.operation(DBWrapper.java:206)
at com.yahoo.ycsb.DBWrapper.read(DBWrapper.java:111)
at com.yahoo.ycsb.workloads.CoreWorkload.doTransactionRead(CoreWorkload.java:522)
at com.yahoo.ycsb.workloads.CoreWorkload.doTransaction(CoreWorkload.java:470)
at com.yahoo.ycsb.ClientThread$1.doOperation(Client.java:349)
at com.yahoo.ycsb.ClientThread.run(Client.java:405)
at com.yahoo.ycsb.ClientThread.run(Client.java:346)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.