lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adnan Yaqoob <>
Subject CloudSolrServer : Could not find collection : gettingstarted
Date Wed, 18 Mar 2015 19:32:57 GMT
I'm getting following exception while trying to upload document on
SolrCloud using CloudSolrServer.

Exception in thread "main" org.apache.solr.common.SolrException:
*Could not find collection :* gettingstarted
    at org.apache.solr.client.solrj.impl.CloudSolrServer.directUpdate(
    at org.apache.solr.client.solrj.impl.CloudSolrServer.request(
    at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(
    at org.apache.solr.client.solrj.SolrServer.add(
    at org.apache.solr.client.solrj.SolrServer.add(
    at Test.addDocumentSolrCloud(
    at Test.main(

I can query through Solr admin, able to upload document using
HttpSolrServer (single instance - non cloud mode) but CloudSolrServer. I've
also verified the collection exists on zookeeper using zkCli command.

Following is the code snippet

CloudSolrServer server = new CloudSolrServer("localhost:2181");
            SolrInputDocument doc = new SolrInputDocument();
            doc.addField("id", id);
            doc.addField("name", name);



Not sure what I'm missing. My Zookeeper is running externally with two solr
nodes on same mac

*Adnan Yaqoob*

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