Cloudera Search Configuration

Source: Internet
Author: User
Tags solr hadoop fs

First, the cluster machine configuration information

Cloudera Cluster Machine:

10.2.45.104 Gbd000.localdomain GBD000
10.2.45.105gbd101.localdomaingbd101
10.2.45.106gbd102.localdomaingbd102
10.2.45.107gbd311.localdomaingbd311
10.2.45.108gbd312.localdomaingbd312
10.2.45.109gbd313.localdomaingbd313
10.2.45.125 gbd314.localdomaingbd314
10.2.45.126 gbd315.localdomaingbd315

Where 10.2.45.105 gbd101.localdomain GBD101 is Namenode

Zookeeper Cluster machine:

10.2.45.105 Gbd101.localdomain GBD101
10.2.45.106gbd102.localdomaingbd102
10.2.45.107gbd311.localdomaingbd311

SOLR Server Installation machine:

10.2.45.125 Gbd314.localdomain GBD314
10.2.45.126 gbd315.localdomaingbd315

Ii. SOLR Installation Configuration

1. Use Cloudera mamager to install SOLR Server on the following machines.

10.2.45.125 Gbd314.localdomain GBD314
10.2.45.126 gbd315.localdomaingbd315

Create the/SOLR directory in HDFs: (General cm has already created this directory in HDFs after installing SOLR)

$ sudo-u HDFs Hadoop fs-mkdir/solr$ sudo-u hdfs hadoop fs-chown SOLR/SOLR

2. Edit SOLR configuration file

With parcels installation, SOLR's configuration file location is:

/opt/cloudera/parcels/cdh-5.7.0-1.cdh5.7.0.p0.45/etc/default/solr

To modify the Zookeeper connection address:

Solr_zk_ensemble=<gbd101>:2181, <gbd102>:2181, <gbd311>:2181/SOLR

To modify the connection address for HDFs:

Solr_hdfs_home=hdfs://GBD101.LOCALDOMAIN:8020/SOLR

To set the HDFS configuration file directory:

Solr_hdfs_config=/etc/hadoop/conf

3. Create SOLR Runtime configuration

To generate a configuration file on any one of the nodes:

#solrctl instancedir--generate #HOME/solr_configs
Solrctl Instancedir--generate/usr/local/solr/collection1

/USR/LOCAL/SOLR is a custom directory that has been created, Collection1 is a configuration file generation directory, it does not need to be created in advance, and the name can be customized.

Create the Collection1 instance and upload the configuration file to zookeeper:

#solrctl instancedir--create collection1 #HOME/--create Collection1/usr/local/solr/collection1

View the uploaded instance using the following command:

Solrctl Instancedir--list

After the configuration file is uploaded to zookeeper, the other nodes can download the configuration file from above. Next Create the collection:

2 1

Where-s indicates that setting the number of Shard to 2,-r indicates that the replica set is 1

After the above steps, the SOLR instance can be created by Http://10.2.45.126:8983/solr/#/~cloud view of the created collection.

Reference Documentation:

Chinese version Cloudera Solr Cloud configuration: http://ae.yyuap.com/pages/viewpage.action?pageId=919744

Cloudera official Website Configuration document

Http://www.cloudera.com/documentation/enterprise/latest/topics/search_deploy_search_solrcloud.html#csig_topic_4_5

Cloudera Search Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.