On 2/10/2014 5:05 PM, jfeist wrote:
I'm using Solr 4.5.1 and trying to use the SolrCloud setup.  I have Zookeeper
and Solr running on three machines.  I have some Java code that does the
following.

SolrServer ss = new
CloudSolrServer("http://localhost:8983/solr/collection1";);
ss.deleteByQuery("*:*");

That gives me the following stack trace.


Exception in thread "main" java.lang.RuntimeException:
java.lang.IllegalArgumentException: Invalid path string
"//localhost:8983/solr/collection1" caused by empty node name specified @1

CloudSolrServer does not use a URL for initilization. It uses a zookeeper connection string -- the same thing that you use for the zkHost parameter when starting SolrCloud. A proper value would be something like this:

"zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181/mysolr"

Thanks,
Shawn

Reply via email to