Hi Tobias, You can pass a comma-delimited list of Zk addresses in your ensemble, such as:
zk1:2181,zk2:2181,zk3:2181, etc. Cheers, Tim On Mon, Oct 29, 2012 at 2:42 AM, Tobias Kraft <kraft.tob...@gmail.com>wrote: > Hi, > > when I need high availability for my Solr environment it is recommended to > run a Zookeeper ensemble as described at the SolrCloud page: > > http://wiki.apache.org/solr/SolrCloud#Example_C:_Two_shard_cluster_with_shard_replicas_and_zookeeper_ensemble > > For accessing Solr we are using the solrj API which also contains the > CloudSolrServer > class for accessing Solr ( > > http://lucene.apache.org/solr/api-4_0_0-ALPHA/org/apache/solr/client/solrj/impl/CloudSolrServer.html > ). > Is there a way to use this class together with a Zookeeper ensemble? > > The constructor of the class accepts only one Zookeeper in the form > HOST:PORT > see also > http://lucene.apache.org/solr/api-4_0_0-ALPHA/org/apache/solr/client/solrj/impl/CloudSolrServer.html#CloudSolrServer(java.lang.String > , > org.apache.solr.client.solrj.impl.LBHttpSolrServer) > > Is there another way to use solrj with a Zookeeper ensemble? Otherwise we > would use an external load balancer and the solrj HttpSolrServer class. > > Many thanks, > Tobias >