Thank Erik, So seems like the problem is that when I upload the configs to zookeeper and then inspect zookeeper-client and ls /solr/configs it is showing to be empty.
I executed the following command to upload the config solrctl --zk dayrhegapd016.enterprisenet.org:2181/solr,host2:2181/solr,host3:2181/solr --solr host4:8983/solr/ instancedir --create config1 $HOME/config1/ Zookeeper-client ls /solr/configs/ does not show this configuration present there. On Wed, Sep 7, 2016 at 2:02 PM, Erick Erickson <erickerick...@gmail.com> wrote: > I'm a bit rusty on solrctl (and you might get faster/more up-to-date > responses on the Cloudera lists). But to create a collection, you > first need to have uploaded the configs to Zookeeper, things like > schema.xml, solrconfig.xml etc. I forget > what the solrctl command is, but something like "upconfig" IIRC. > > Once that's done, you either > 1> specify the collection name exactly the same as the config name > you uploaded > or > 2> use one of the other parameters to tell collectionX to use configsetY > with the collection create command. solrctl help should show you all these > options... > > Best, > Erick > > On Wed, Sep 7, 2016 at 11:43 AM, Darshan Pandya <darshanpan...@gmail.com> > wrote: > > Gonzalo, > > Thanks for responding, > > executed the parameters you suggested, it still shows me the same error. > > Sincerely, > > darshan > > > > On Wed, Sep 7, 2016 at 1:13 PM, Gonzalo Rodriguez < > > grodrig...@searchtechnologies.com> wrote: > > > >> Hi Darshan, > >> > >> It looks like you are listing the instanceDir's name twice in the create > >> collection command, it should be > >> > >> $ solrctl --zk host:2181/solr --solr host:8983/solr/ collection > --create > >> Catalog_search_index -s 10 -c Catalog_search_index > >> > >> Without the extra ". Catalog_search_index" at the end. Also, because > your > >> new collection's name is the same as the instanceDir's, you could just > omit > >> that parameter and it should work ok. > >> > >> Try that and see if it works. > >> > >> Good luck, > >> Gonzalo > >> > >> -----Original Message----- > >> From: Darshan Pandya [mailto:darshanpan...@gmail.com] > >> Sent: Wednesday, September 7, 2016 12:02 PM > >> To: solr-user@lucene.apache.org > >> Subject: newbie question > >> > >> hello, > >> > >> I am using solr cloud with cloudera. When I try to create a collection, > it > >> fails with the following error. > >> Any hints / answers will be helpful. > >> > >> > >> $ solrctl --zk host:2181/solr instancedir --list > >> > >> Catalog_search_index > >> > >> $ solrctl --zk shot:2181/solr --solr host:8983/solr/ collection > --create > >> Catalog_search_index -s 10 -c Catalog_search_index.Catalog_search_index > >> > >> Error: A call to SolrCloud WEB APIs failed: HTTP/1.1 200 OK > >> > >> Server: Apache-Coyote/1.1 > >> > >> Content-Type: application/xml;charset=UTF-8 > >> > >> Transfer-Encoding: chunked > >> > >> Date: Wed, 07 Sep 2016 17:58:13 GMT > >> > >> > >> <?xml version="1.0" encoding="UTF-8"?> > >> > >> > >> <response> > >> > >> > >> <lst name="responseHeader"> > >> > >> <int name="status"> > >> > >> 0</int> > >> > >> <int name="QTime"> > >> > >> 1165</int> > >> > >> </lst> > >> > >> <lst name="failure"> > >> > >> <str> > >> > >> org.apache.solr.client.solrj.impl.HttpSolrServer$ > RemoteSolrException:Error > >> CREATEing SolrCore 'Catalog_search_index_shard1_replica1': Unable to > >> create core [Catalog_search_index_shard1_replica1] Caused by: Specified > >> config does not exist in ZooKeeper:Catalog_search_ > >> index.dataCatalog_search_index</str> > >> > >> > >> -- > >> Sincerely, > >> Darshan > >> > > > > > > > > -- > > Sincerely, > > Darshan > -- Sincerely, Darshan