Hi all..   I was playing around with a cluster and wanted to upload a configset 
into Solr….   

I ran bin/solr and noticed a bin/solr config -h command, but it just lets me 
tweak a config.   Then I ran bin/solr create -h and it appears to let me upload 
a configset, but I have to create the collection as well, and I’m not ready to 
do that.   

Then I poked around and discovered hidden under bin/solr zk a command 
upconfig…. So bin/solr zk upconfig will let me get my configset into Solr, but 
does require me to remember what my magic ZK string is ;-).  

I went and checked the ref guide, and yes, it states that there are two ways:

A configset can be uploaded to ZooKeeper either via the Configsets API 
<https://solr.apache.org/guide/solr/latest/configuration-guide/configsets-api.html>
 or more directly via bin/solr zk upconfig 
<https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html#upload-a-configuration-set>.
 The Configsets API has some other operations as well, and likewise, so does 
the CLI.

Are there use cases where interacting directly with ZooKeeper is preferred over 
making changes via the APIs?  Of is the use of bin/solr zk upconfig more of a 
evolutionary byproduct of how we built SolrCloud?

Eric

_______________________
Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | 
http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | 
My Free/Busy <http://tinyurl.com/eric-cal>  
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed 
<https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
    
This e-mail and all contents, including attachments, is considered to be 
Company Confidential unless explicitly stated otherwise, regardless of whether 
attachments are marked as such.

Reply via email to