I have a java API application which connects to cassandra instance. My cassandra instance is hosted on google cloud platform. When I run the program in my IDE, it works fine and is able to connect to the cassandra instance. However when I deploy the application in a docker container I am getting the following error
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /104.X.X.X:9042 (com.datastax.driver.core.exceptions.TransportException: [/104.X.X.X:9042] Error writing
From inside the container, I am able to ping the Cassandra instance. Most of the error I have seen on google end with "Connection closed" or "Channel closed" or "Cannot connect". However this one ends with "Error writing", can someone please help me troubleshoot this issue.
TransportException
but that was because I forgot to provide path to the truststore file. After I add it, stillTransportException
but I notice the "Error Writing". Does this mean it can reach cassandra but no write permission? – Gorge