11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

working through the previous section on this page.<br />

*nix command<br />

bin/solr -cloud -s cloud/node1 -z localhost:2181 -p 8984<br />

Windows command<br />

bin\solr.cmd -cloud -s cloud\node1 -z localhost:2181 -p 8984<br />

Notice the use of the -s option to set the location of the <strong>Solr</strong> home directory for node1.<br />

If you created your SSL key without all DNS names/IP addresses on which <strong>Solr</strong> nodes will run, you can tell <strong>Solr</strong><br />

to skip hostname verification for inter-<strong>Solr</strong>-node communications by setting the solr.ssl.checkPeerName sys<br />

tem property to false:<br />

*nix command<br />

bin/solr -cloud -s cloud/node1 -z localhost:2181 -p 8984<br />

-Dsolr.ssl.checkPeerName=false<br />

Windows command<br />

bin\solr.cmd -cloud -s cloud\node1 -z localhost:2181 -p 8984<br />

-Dsolr.ssl.checkPeerName=false<br />

Start the second <strong>Solr</strong> node<br />

Finally, start the second <strong>Solr</strong> node on port 7574 - again, to skip hostname verification, add -Dsolr.ssl.check<br />

PeerName=false;<br />

*nix command<br />

bin/solr -cloud -s cloud/node2 -z localhost:2181 -p 7574<br />

Windows command<br />

bin\solr.cmd -cloud -s cloud\node2 -z localhost:2181 -p 7574<br />

Example Client Actions<br />

cURL on OS X Mavericks (10.9) has degraded SSL support. For more information and workarounds to<br />

allow 1-way SSL, see http://curl.haxx.se/mail/archive-2013-10/0036.html . cURL on OS X Yosemite<br />

(10.10) is improved - 2-way SSL is possible - see http://curl.haxx.se/mail/archive-2014-10/0053.html .<br />

The cURL commands in the following sections will not work with the system curl on OS X Yosemite<br />

(10.10). Instead, the certificate supplied with the -E param must be in PKCS12 format, and the file<br />

supplied with the --cacert param must contain only the CA certificate, and no key (see above for<br />

instructions on creating this file):<br />

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

529

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

Saved successfully!

Ooh no, something went wrong!