This is the documentation for CDH 5.0.x. Documentation for other versions is available at Cloudera Documentation.
Configuring Flume Solr
Sink
Edit /etc/flume-ng/conf/flume.conf
to specify the Flume Source details and set up the flow. You must set
the relative or absolute path to the morphline configuration
file:
Edit /etc/flume-ng/conf/morphline.conf to specify the
Solr location details.
Specify the collection configuration parameter to identify the name of the Solr
Collection to use: collection :
collection3
Point the zkHost configuration parameter to the address of the
SolrCloud ZooKeeper ensemble of the Solr collection. The format is the same as for
MapReduceIndexerTool --zk-host.
Substitute the corresponding host name for 127.0.0.1, if
necessary:
(Optional) You can configure the location at which
Flume finds Cloudera Search dependencies for Flume Solr Sink using SEARCH_HOME. For example, if you installed Flume
from a tarball package, you can configure it to find required files by setting SEARCH_HOME. To set SEARCH_HOME use a command of the
form:
$ export SEARCH_HOME=/usr/lib/search
Note: Alternatively, you can add the same setting to flume-env.sh.