You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2010/02/11 19:09:16 UTC

[Solr Wiki] Update of "SolrCloud" by YonikSeeley

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrCloud" page has been changed by YonikSeeley.
The comment on this change is: bootstrap_confname -> collection.configName .
http://wiki.apache.org/solr/SolrCloud?action=diff&rev1=28&rev2=29

--------------------------------------------------

  
  Solr embeds and uses Zookeeper as a repository for cluster configuration and coordination - think of it as a distributed filesystem that contains information about all of the Solr servers.
  
- Since we'll need two solr servers for this example, simply make a copy of the example directory for the second server.
- 
- {{{
- cp -r example example2
- }}}
  === Example A: Simple two shard cluster ===
  This example simply creates a cluster consisting of two solr servers representing two different shards of a collection.
  
@@ -36, +31 @@

  
  {{{
  cd example
- java -Dbootstrap_confname=myconf -Dbootstrap_confdir=./solr/conf -DzkRun -jar start.jar
+ java -Dbootstrap_confdir=./solr/conf -Dcollection.configName=myconf -DzkRun -jar start.jar
  }}}
-  * {{{-DzkRun}}} tells solr to run a single standalone zookeeper server as part of this Solr server.
-  * {{{-Dbootstrap_confname=myconf}}} tells this solr node to use the "myconf" configuration stored within zookeeper.
-  * {{{-Dbootstrap_confdir=./solr/conf}}} since "myconf" does not actually exist yet, this parameter causes the local configuration directory {{{./solr/conf}}} to be uploaded to zookeeper as the "myconf" config.
+  * {{{-DzkRun}}} causes an embedded zookeeper server to be run as part of this Solr server.
+  * {{{-Dbootstrap_confdir=./solr/conf}}} Since we don't yet have a config in zookeeper, this parameter causes the local configuration directory {{{./solr/conf}}} to be uploaded as the "myconf" config.  The name "myconf" is taken from the "collection.configName" param below.
+  * {{{-Dcollection.configName=myconf}}} sets the config to use for the new collection.
+ 
  
  Browse to http://localhost:8983/solr/collection1/admin/zookeeper.jsp to see the state of the cluster (the zookeeper distributed filesystem).
  
@@ -125, +121 @@

  
  {{{
  cd example
- java -Dbootstrap_confname=myconf -Dbootstrap_confdir=./solr/conf -DzkRun -DzkHost=localhost:9983,localhost:8574,localhost:9900  -jar start.jar
+ java -Dbootstrap_confdir=./solr/conf -Dcollection.configName=myconf -DzkRun -DzkHost=localhost:9983,localhost:8574,localhost:9900  -jar start.jar
  }}}
  {{{
  cd example2