Sunday, April 1, 2018

FW: Solr 4.9 - configs and collections

-----Original Message-----
From: Abhi Basu [mailto:9000revs@gmail.com]
Sent: 26 March 2018 20:13
To: solr-user@lucene.apache.org
Subject: Solr 4.9 - configs and collections

Running on MS HDInsight and Solr 4.9.What is the BKM for creation, update,
delete of configurations and collections?

I do the following:

1. First I create the zk config:
sudo zkcli.sh -cmd upconfig -zkhost zknode
<http://zk1-esohad.tzun3mpncofedp04lr3ird23xc.jx.internal.cloudapp.net/>:218
1
-confdir /home/sshuser/ems-collection-49/conf/ -confname ems-collection

2. Then I create the collection:
curl '
http://headnode0:8983/solr/admin/collections?action=CREATE&name=ems-collecti
on&numShards=2&replicationFactor=2&maxShardsPerNode=1

'

This works the first time. When I change the zk config, do I run the same
command #1? Also, do I do a reload:

curl '
http://headnode0:8983/solr/admin/collections?action=RELOAD&name=ems-collecti
on
'

Or, do I need to delete and recreate the collection?


Very familiar with CDH solrctl commands that make life easier by only having
one command for this. Any help is appreciated.

Thanks,

Abhi

--
Abhi Basu

No comments:

Post a Comment