title: cassandra: how to connect cassandra cluster using lb?
body: <p>I am presently trying to setup cassandra cluster (4 nodes with 2 seeds) in our production env.
  When i connect with comma seperated host name and port, it is working fine.</p>
  
  <pre><code>cluster = HFactory.getOrCreateCluster("Test Cluster", "host1:9160,host2:9160,host3:9160,host4:9160");
  </code></pre>
  
  <p>But when I configured a cluster name at the lb connecting to the individaul nodes and configured the same in Hector thrift client. But i got the below eception,</p>
  
  <pre><code>cluster = HFactory.getOrCreateCluster("Test Cluster", "lbname");
  </code></pre>
  
  <p>SEVERE: me.prettyprint.hector.api.exceptions.HectorException: All host pools marked down. Retry burden pushed out to client.</p>
  
  <pre><code>me.prettyprint.hector.api.exceptions.HectorException: All host pools marked down. Retry burden pushed out to client.
          at me.prettyprint.cassandra.connection.HConnectionManager.getClientFromLBPolicy(HConnectionManager.java:393)
          at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:249)
          at me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:199)
          at com.july.storage.cassandra.util.CassandraDBUtil.getDb(CassandraDBUtil.java:107)
          at com.july.storage.cassandra.util.CassandraDBUtil.hasTable(CassandraDBUtil.java:91)
          at com.july.storage.cassandra.action.CassandraHandler.getCall(CassandraHandler.java:65)
          at com.july.storage.service.StorageService.GET(StorageService.java:58)
          at com.july.storage.cassandra.action.CassandraHandler.main(CassandraHandler.java:571)
  </code></pre>