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.