lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: HDInsight with Solr 4.9.0 Create Collection
Date Thu, 08 Mar 2018 23:25:41 GMT
First I have no idea what HDInsight is about, and CDH is a Cloudera
product so anything related to that specifically would best be asked
on the Cloudera lists. Solrctl is also a Cloudera-provided script
IIUC.

ButI can say that the command you showed is...odd. If you're saying
_you_ entered it then its about _core_ creation, not collection
creation and you should be using the Collections API, not the Core
Admin API.

Best,
Erick

On Thu, Mar 8, 2018 at 12:26 PM, Abhi Basu <9000revs@gmail.com> wrote:
> Folks:
>
> I'm in a bind. Added Solr 4.9.0 to HDInsight cluster and find no Solrctl
> commands installed. So, I am doing the following to create a collection.
>
> I have my collection schema in a location:
>
>
>
> /home/sshuser/abhi/ems-collection/conf
>
>
>
> Using this command to create a collection:
>
>
>
> http://headnode1:8983/solr/admin/cores?action=CREATE&name=ems-collection&instanceDir=/home/sshuser/abhi/ems-collection/conf
> <http://hn0-esohad.iqz04pwsg24ulbodxuo51nheig.jx.internal.cloudapp.net:8983/solr/admin/cores?action=CREATE&name=ems-collection&instanceDir=/home/sshuser/abhi/ems-collection/conf/>
> /
>
>
>
> Get an error like:
>
> Error CREATEing SolrCore 'ems-collection': Unable to create core:
> ems-collection Caused by: Could not find configName for collection
> ems-collection found:[collection1, hditestconfig]
>
>
>
> I guess i need to register my config name with Zk. How do I register the
> collection schema with Zookeeper?
>
>
> Is there way to bypass the registration with zk and build the collection
> directly from my schema files at that folder location, like I was able to
> do in Solr 4.10 in CDH 5.14:
>
> solrctl --zk hadoop-dn6.eso.local:2181/solr instancedir --create
> ems-collection /home/sshuser/abhi/ems-collection/
>
> solrctl --zk hadoop-dn6.eso.local:2181/solr collection --create
> ems-collection -s 3 -r 2
>
>
> Your help is appreciated.
>
>
>
> Thanks,
>
> Abhi
>
>
>
> --
> Abhi Basu

Mime
View raw message