Solr's Administration page (found by default at
http://hostname:8983/solr/), provides a section with menu items for monitoring indexing and performance statistics, information about index distribution and replication, and information on all threads running in the JVM at the time. There is also a section where you can run queries, and an assistance area.
In addition, SolrCloud provides its own administration page (found at http://localhost:8983/solr/#/~cloud), as well as a few tools available via a ZooKeeper Command Line Utility (CLI). The CLI scripts found in
server/scripts/cloud-scripts let you upload configuration information to ZooKeeper, in the same two ways that were shown in the examples in Parameter Reference. It also provides a few other commands that let you link collection sets to collections, make ZooKeeper paths or clear them, and download configurations from ZooKeeper to the local filesystem.
Solr's zkcli.sh vs ZooKeeper's zkCli.sh
zkcli.sh provided by Solr is not the same as the
zkCli.sh included in ZooKeeper distributions.
zkCli.sh provides a completely general, application-agnostic shell for manipulating data in ZooKeeper. Solr's
zkcli.sh – discussed in this section – is specific to Solr, and has command line arguments specific to dealing with Solr data in ZooKeeper.
Using Solr's ZooKeeper CLI
zkcli.sh (for Unix environments) and
zkcli.bat (for Windows environments) support the following command line options:
CLI Command to be executed:
ZooKeeper host address.
Display help text.
Run ZooKeeper internally by passing the Solr run port; only for clusters on one machine.
The short form parameter options may be specified with a single dash (eg:
The long form parameter options may be specified using either a single dash (eg:
-collection mycollection) or a double dash (eg:
ZooKeeper CLI Examples
Below are some examples of using the
zkcli.sh CLI which assume you have already started the SolrCloud example (
bin/solr -e cloud -noprompt)
If you are on Windows machine, simply replace
zkcli.bat in these examples.
Upload a configuration directory
Put arbitrary data into a new ZooKeeper file
Put a local file into a new ZooKeeper file
Link a collection to a configuration set
|Parameter Reference||SolrCloud Configuration and Parameters||SolrCloud with Legacy Configuration Files|