-----Original Message-----
From: Abhi Basu [mailto:9000revs@gmail.com]
Sent: 09 March 2018 01:57
To: solr-user@lucene.apache.org
Subject: HDInsight with Solr 4.9.0 Create Collection
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&ins
tanceDir=/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
No comments:
Post a Comment