title: ERROR Session: Error creating pool to /127.0.0.1:9042
body: <p>I am trying to insert values in cassandra when I come across this error:</p>
  
  <pre><code>15/08/14 10:21:54 INFO Cluster: New Cassandra host /a.b.c.d:9042 added
  15/08/14 10:21:54 INFO Cluster: New Cassandra host /127.0.0.1:9042 added
  INFO CassandraConnector: Connected to Cassandra cluster: Test Cluster
  15/08/14 10:21:54 ERROR Session: Error creating pool to /127.0.0.1:9042
  com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Cannot connect
          at com.datastax.driver.core.Connection.&lt;init&gt;(Connection.java:109)
          at com.datastax.driver.core.PooledConnection.&lt;init&gt;(PooledConnection.java:32)
          at com.datastax.driver.core.Connection$Factory.open(Connection.java:586)
          at com.datastax.driver.core.SingleConnectionPool.&lt;init&gt;(SingleConnectionPool.java:76)
          at com.datastax.driver.core.HostConnectionPool.newInstance(HostConnectionPool.java:35)
          at com.datastax.driver.core.SessionManager.replacePool(SessionManager.java:271)
          at com.datastax.driver.core.SessionManager.access$400(SessionManager.java:40)
          at com.datastax.driver.core.SessionManager$3.call(SessionManager.java:308)
          at com.datastax.driver.core.SessionManager$3.call(SessionManager.java:300)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
          at java.lang.Thread.run(Thread.java:722)
  Caused by: java.net.ConnectException: Connection refused: /127.0.0.1:9042
  </code></pre>
  
  <p>My replication factor is 1. There are 5 nodes in the Cass cluster (they're all up). rpc_address: 0.0.0.0, broadcast_rpc_address: 127.0.0.1</p>
  
  <p>I would think that I should see 5 of those "INFO Cluster: New Cassandra host.." line from above for each of the 5 nodes. <strong>But instead I see 127.0.0.1, I am not sure why.</strong></p>
  
  <p>I also noticed that in the cassandra.yaml file, all the 5 nodes are listed under seed. (which I know is not advised but I did not set up this  cluster)</p>
  
  <pre><code>seed_provider:
  class_name: org.apache.cassandra.locator.SimpleSeedProvider
  parameters:
  seeds: "ip1, ip2, ip3, ip4, ip5"
  </code></pre>
  
  <p>Where ipx is the ipaddr for node x.</p>
  
  <p>And under cassandra-topology.properties it just says the following and does not mention any of the 5 nodes.</p>
  
  <pre><code># default for unknown nodes                                                                                                                     
  
  default=DC1:r1
  </code></pre>
  
  <p>Can someone explain why I am seeing the ERROR Session: Error creating pool to /127.0.0.1:9042 error.</p>
  
  <p>Kind of new to Cassandra.. thanks in advance!</p>