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.

An example of this command with these parameters is:<br />

bin/solr zk -upconfig -z 111.222.333.444:2181 -n mynewconfig -d /path/to/configset<br />

This command does not automatically make changes effective! It simply uploads the configuration sets to<br />

ZooKeeper. You can use the Collections API to issue a RELOAD command for any collections that uses this<br />

configuration set.<br />

Downloading a Configuration Set<br />

Use this ZooKeeper sub-command to download a configuration set from ZooKeeper to the local filesystem.<br />

Available Parameters (all parameters are required)<br />

Parameter Description Example<br />

-downconfig<br />

Download a configuration set from<br />

ZooKeeper to the local filesystem.<br />

-downconfig<br />

-n Name of config set in ZooKeeper to<br />

download. The Admin<br />

UI>>Cloud>>tree>>configs node lists all<br />

available configuration sets.<br />

-n myconfig<br />

-d<br />

<br />

The path to write the downloaded<br />

configuration set into.<br />

If just a name is supplied,<br />

SOLR_HOME/server/solr/configsets will<br />

be the parent.<br />

An absolute path may be supplied as<br />

well.<br />

In either case, pre-existing<br />

configurations at the destination will be<br />

overwritten!<br />

-d directory_under_configsets -d<br />

/absolute/path/to/configset/destination<br />

-z The ZooKeeper connection string. -z 123.321.23.43:2181<br />

An example of this command with the parameters is:<br />

bin/solr zk -downconfig -z 111.222.333.444:2181 -n mynewconfig -d<br />

/path/to/configset<br />

A "best practice" is to keep your configuration sets in some form of version control as the system-of-record. In<br />

that scenario, downconfig should rarely be used.<br />

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

25

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

Saved successfully!

Ooh no, something went wrong!