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 Mark Miller:
http://wiki.apache.org/solr/SolrCloud?action=diff&rev1=46&rev2=47

   * {{{-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).
+ Browse to http://localhost:8983/solr/#/cloud to see the state of the cluster 
(the zookeeper distributed filesystem).
- 
- NOTE: There is a new admin UI that is a work-in-progress that is also 
available: http://localhost:8983/solr/#/cloud (make sure to expand the rather 
lonely-looking root node in the initial display!). This is a work in progress, 
so please feel free to try it and provide feedback/enhancements. One known 
limitation is that each of the leaf nodes in the old UI links to the detail 
information, this is not yet implemented in the new UI (any help greatly 
appreciated!).
  
  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.
  
@@ -56, +54 @@

   * {{{-Djetty.port=7574}}}  is just one way to tell the Jetty servlet 
container to use a different port.
   * {{{-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.
  
- 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.
+ If you refresh the zookeeper browser, you should now see both shard1 and 
shard2 in collection1.  View http://localhost:8983/solr/#/cloud.
  
  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:
  

Reply via email to