title: Cassandra Java Driver error - All host(s) tried for query failed Connection has been closed
body: <p>All,</p>
  
  <p>I  have a 3 noded cluster cassandra in Digital Ocean . the version of cassandra as per <strong>SHOW VERSION</strong> in CQL is shown below</p>
  
  <p><strong>[cqlsh 5.0.1 | Cassandra 3.0.0 | CQL spec 3.3.1 | Native protocol v4]</strong></p>
  
  <p>I am able to connnect to one node of the cluster from another node using cqlsh and run commands... However when i try to connect using the java driver , i get the following exception</p>
  
  <pre><code>com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /128.xxx.xxx.xx:9042 (com.datastax.driver.core.TransportException: [/128.xxx.xxx.xxx:9042] Connection has been closed))
  at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:222)
  at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:77)
  at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1232)
  at com.datastax.driver.core.Cluster.getMetadata(Cluster.java:336)
  at com.attinad.cantiz.iot.platform.vehicledatapoc.App.connect(App.java:22)
  at com.attinad.cantiz.iot.platform.vehicledatapoc.App.main(App.java:14)
  </code></pre>
  
  <p>The version of java driver that i am using is 2.0.10. The maven configuration is given below</p>
  
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
  &lt;artifactId&gt;cassandra-driver-core&lt;/artifactId&gt;
  &lt;version&gt;2.0.10&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I checked the cassandra.yaml and found that the following settings has been set correctly</p>
  
  <pre><code>start_native_transport: true
  native_transport_port: 9042
  rpc_address: 128.xxx.xxx.xx
  listen_address: 128.xxx.xxx.xx
  </code></pre>
  
  <p>has been configured correctly... So i am completely lost... Any help is appreciated</p>