11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

zkHost No default The host address for ZooKeeper. Usually this is a<br />

comma-separated list of addresses to each node in<br />

your ZooKeeper ensemble.<br />

zkClientTimeout Defaults to 15000 The time a client is allowed to not talk to<br />

ZooKeeper before its session expires.<br />

zkRun and zkHost are set up using system properties. zkClientTimeout is set up in solr.xml by default,<br />

but can also be set using a system property.<br />

<strong>Solr</strong>Cloud Core Parameters<br />

shardId<br />

Defaults to being automatically assigned based<br />

on numShards<br />

Allows you to specify the id used to group<br />

cores into shards.<br />

shardId can be configured in solr.xml for each core element as an attribute.<br />

Additional cloud related parameters are discussed in <strong>Solr</strong> Cores and solr.xml.<br />

Command Line Utilities<br />

<strong>Solr</strong>'s Administration page (found by default at http://hostname:8983/solr/ ), provides a section with<br />

menu items for monitoring indexing and performance statistics, information about index distribution and<br />

replication, and information on all threads running in the JVM at the time. There is also a section where you can<br />

run queries, and an assistance area.<br />

In addition, <strong>Solr</strong>Cloud provides its own administration page (found at http://localhost:8983/solr/#/~cloud), as well<br />

as a few tools available via a ZooKeeper Command Line Utility (CLI). The CLI scripts found in server/script<br />

s/cloud-scripts let you upload configuration information to ZooKeeper, in the same two ways that were<br />

shown in the examples in Parameter <strong>Reference</strong>. It also provides a few other commands that let you link<br />

collection sets to collections, make ZooKeeper paths or clear them, and download configurations from<br />

ZooKeeper to the local filesystem.<br />

<strong>Solr</strong>'s zkcli.sh vs ZooKeeper's zkCli.sh<br />

The zkcli.sh provided by <strong>Solr</strong> is not the same as the zkCli.sh included in ZooKeeper distributions.<br />

ZooKeeper's zkCli.sh provides a completely general, application-agnostic shell for manipulating data<br />

in ZooKeeper. <strong>Solr</strong>'s zkcli.sh – discussed in this section – is specific to <strong>Solr</strong>, and has command line<br />

arguments specific to dealing with <strong>Solr</strong> data in ZooKeeper.<br />

Using <strong>Solr</strong>'s ZooKeeper CLI<br />

Both zkcli.sh (for Unix environments) and zkcli.bat (for Windows environments) support the following<br />

command line options:<br />

Short<br />

Parameter<br />

Usage<br />

Meaning<br />

-cmd CLI Command to be executed: bootstrap, upconfig, downconfig,<br />

linkconfi<br />

g, makepath, get, getfile, put, putfile, list, clear or clusterprop.<br />

This parameter is mandatory<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

600

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!