com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: host:9042 (com.datastax.driver.core.exceptions.TransportException: [null] Cannot connect))

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via DataStax JIRA by Andrew Jorgensen, 1 year ago
All host(s) tried for query failed (tried: host:9042 (com.datastax.driver.core.exceptions.TransportException: [null] Cannot connect))
via DataStax JIRA by Andrew Jorgensen, 1 year ago
All host(s) tried for query failed (tried: host:9042 (com.datastax.driver.core.exceptions.TransportException: [null] Cannot connect))
via Stack Overflow by abaratham
, 1 year ago
All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.OperationTimedOutException: [localhost/127.0.0.1:9042] Operation timed out))
via Stack Overflow by Vladimir Matveev
, 1 year ago
All host(s) tried for query failed (tried: cassandra/172.18.0.2:9042 (com.datastax.driver.core.exceptions.TransportException: [cassandra/172.18.0.2:9042] Cannot connect))
via Stack Overflow by Rahul Koshaley
, 1 year ago
All host(s) tried for query failed (tried: /EMR PUBLIC IP:9042 (com.datastax.driver.core.TransportException: [/EMR PUBLIC IP:9042] Cannot connect))
via Stack Overflow by Al A
, 1 year ago
All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Cannot connect))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: host:9042 (com.datastax.driver.core.exceptions.TransportException: [null] Cannot connect))
at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:231)
at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:77)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1382)
at com.datastax.driver.core.Cluster.init(Cluster.java:162)
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:333)
at com.crashlytics.pump.Main.main(Main.java:21)

Users with the same issue

3 times, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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