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] Update of "SolrCloud" by Mark Miller
Date Thu, 16 Aug 2012 15:34:40 GMT
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=60&rev2=61

  || collection.configName || Defaults to configuration1 || Determines the name of the conf
set pointed to by bootstrap_confdir ||
  
  === Command Line Util ===
+ {{{
+ usage: ZkCLI
+  -c,--collection <arg>   for linkconfig: name of the collection
+  -cmd <arg>              cmd to run: bootstrap, upconfig, downconfig,
+                          linkconfig, makepath, clear
+  -d,--confdir <arg>      for upconfig: a directory of configuration files
+  -h,--help               bring up this help page
+  -n,--confname <arg>     for upconfig, linkconfig: name of the config set
+  -r,--runzk <arg>        run zk internally by passing the solr run port -
+                          only for clusters on one machine (tests, dev)
+  -s,--solrhome <arg>     for bootstrap, runzk: solrhome location
+  -z,--zkhost <arg>       ZooKeeper host address
+ }}}
  
- TBD
- 
+ ==== Examples ====
+ {{{
+ # try uploading a conf dir
+ java -classpath example/solr-webapp/WEB-INF/lib/* org.apache.solr.cloud.ZkCLI -cmd upconfig
-zkhost 127.0.0.1:9983 -confdir example/solr/collection1/conf -confname conf1 -solrhome example/solr
+ }}}
+ {{{
+ # try linking a collection to a conf set
+ java -classpath example/solr-webapp/WEB-INF/lib/* org.apache.solr.cloud.ZkCLI -cmd linkconfig
-zkhost 127.0.0.1:9983 -collection collection1 -confname conf1 -solrhome example/solr
+ }}}
+ {{{
+ # try bootstrapping all the conf dirs in solr.xml
+ java -classpath example/solr-webapp/WEB-INF/lib/* org.apache.solr.cloud.ZkCLI -cmd bootstrap
-zkhost 127.0.0.1:9983 -solrhome example/solr
+ }}}
+ ==== Scripts ====
+ There are scripts in example/cloud-scripts that handle the classpath and class name for
you. Cmds then become:
+ {{{
+ sh zkcli.sh -cmd linkconfig -zkhost 127.0.0.1:9983 -collection collection1 -confname conf1
-solrhome example/solr
+ }}}
  == FAQ ==
  
   * '''Q:''' I'm seeing lot's of session timeout exceptions - what to do?

Mime
View raw message