lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "SolrCloud2" by Mark Miller
Date Sat, 14 Jan 2012 22:49:40 GMT
Dear Wiki user,

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

The "SolrCloud2" page has been changed by Mark Miller:
http://wiki.apache.org/solr/SolrCloud2?action=diff&rev1=11&rev2=12

   * {{{-Dcollection.configName=myconf}}} sets the config to use for the new collection. Omitting
this param will cause the config name to default to "configuration1".
   * {{{-DnumShards=2}}} the number of logical partitions we plan on splitting the index into.
  
- Browse to http://localhost:8983/solr/collection1/admin/zookeeper.jsp to see the state of
the cluster (the zookeeper distributed filesystem). Or view [[http://people.apache.org/~markrmiller/zk-example1.jpg|here]]
if you are just reading along.
+ Browse to http://localhost:8983/solr/collection1/admin/zookeeper.jsp to see the state of
the cluster (the zookeeper distributed filesystem).
  
  You can see from the zookeeper browser that the Solr configuration files were uploaded under
"myconf", and that a new document collection called "collection1" was created.  Under collection1
is a list of shards, the pieces that make up the complete collection.
  
@@ -47, +47 @@

   * {{{-DzkHost=localhost:9983}}} points to the Zookeeper ensemble containing the cluster
state.  In this example we're running a single Zookeeper server embedded in the first Solr
server.  By default, an embedded Zookeeper server runs at the Solr port plus 1000, so 9983.
   * {{{-DnumShards=2}}} again, we need to specify the number of shards we want when a SolrCore
is first started and registers in ZooKeeper.
  
- If you refresh the zookeeper browser, you should now see both shard1 and shard2 in collection1.
+ If you refresh the zookeeper browser, you should now see both shard1 and shard2 in collection1.
 View [[http://people.apache.org/~markrmiller/zk-example1.jpg|here]] if you are just reading
along.
  
  Next, index some documents. If you want to whip up some Java you can use the CloudSolrServer
solrj impl and simply init it with the address to ZooKeeper. Or simply randomly choose which
instance to add documents too - they will be automatically forwarded to where they belong:
  

Mime
View raw message