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.

authentication from <strong>Solr</strong>, you need to set the following parameters:<br />

Parameter Default Description<br />

solr.hdfs.security.kerberos.enabled false Set to true to enable Kerberos authentication<br />

solr.hdfs.security.kerberos.keytabfile N/A A keytab file contains pairs of<br />

Kerberos principals and encrypted keys which<br />

allows for password-less authentication when<br />

<strong>Solr</strong> attempts to authenticate with secure<br />

Hadoop.<br />

This file will need to be present on all <strong>Solr</strong><br />

servers at the same path provided in this<br />

parameter.<br />

solr.hdfs.security.kerberos.principal N/A The Kerberos principal that <strong>Solr</strong> should use to<br />

authenticate to secure Hadoop; the format of<br />

a typical Kerberos V5 principal is: primary/i<br />

nstance@realm<br />

Example<br />

Here is a sample solrconfig.xml configuration for storing <strong>Solr</strong> indexes on HDFS:<br />

<br />

hdfs://host:port/solr<br />

true<br />

1<br />

true<br />

16384<br />

true<br />

true<br />

16<br />

192<br />

<br />

If using Kerberos, you will need to add the three Kerberos related properties to the elem<br />

ent in solrconfig.xml, such as:<br />

<br />

...<br />

true<br />

/etc/krb5.keytab<br />

solr/admin@KERBEROS.COM<br />

<br />

Automatically Add Replicas in <strong>Solr</strong>Cloud<br />

One benefit to running <strong>Solr</strong> in HDFS is the ability to automatically add new replicas when the Overseer notices<br />

that a shard has gone down. Because the "gone" index shards are stored in HDFS, the a new core will be<br />

created and the new core will point to the existing indexes in HDFS.<br />

Collections created using autoAddReplicas=true on a shared file system have automatic addition of replicas<br />

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

535

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

Saved successfully!

Ooh no, something went wrong!