lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nazik Huq <nazik...@gmail.com>
Subject Re: Using Zookeeper with REST URL
Date Wed, 19 Nov 2014 15:50:40 GMT
Look at the \contrib\rest directory for zookeeper-3.4.5-rest.jar. It may
give you REST access to ZK - @nazik_huq

On Wed, Nov 19, 2014 at 10:27 AM, Ian Rose <ianrose@fullstory.com> wrote:

> 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 <kouicin@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message