Yes, use the same command to upload a config. Yes, you need to reload a collection.
Lots of this functionality is in the newer bin/solr scripts, 4.9 is 3.5 years old. Best, Erick On Mon, Mar 26, 2018 at 7:43 AM, Abhi Basu <9000r...@gmail.com> wrote: > 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/>:2181 > -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-collection&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-collection > ' > > 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