I don't think zookeeper has a REST api.  You'll need to use a Zookeeper
client library in your language (or roll one yourself).

On Wed, Nov 19, 2014 at 9:48 AM, nabil Kouici <koui...@yahoo.fr> wrote:

> Hi All,
>
> I'm connecting to solr using REST API (No library like SolJ). As my solr
> configuration is in cloud using Zookeeper ensemble, I don't know how to get
> available Solr server from ZooKeeper to be used in my URL Call. With SolrJ
> I can do:
>
> String zkHostString = "10.0.1.8:2181";
> CloudSolrServersolr = newCloudSolrServer(zkHostString);
> solr.connect();
>
> SolrQuerysolrQuery = newSolrQuery("*:*");
> solrQuery.setRows(10);
> QueryResponse resp = solr.query(solrQuery);
>
> Any help.
>
> Regards,
> Nabil

Reply via email to