E-commerce on your fingertips---(one) Windows platform deployment Solrcloud

Source: Internet
Author: User
Tags solr zookeeper

Solrcloud is a distributed solution that is based on zookeeper and SOLR and can be easily understood as a cluster that can provide distributed queries and distributed write indexes.

The structure of the solrcloud is roughly the same, a solrcloud consists of multiple shared nodes, and a shared one includes the SOLR node, where each shared has a leader SOLR node and multiple replica nodes.

The content of each SOLR node is the same.

let's see how to deploy Solrcloud on the Windows platform.

Need to download the next program, specific installation configuration can be in the previous sections of the tutorial

Tomcat 8.0 Remember that if you are using the installation version, the installation version is not catalina.bat this file

SOLR 4.8

Here we demonstrate a stand-alone deployment, where zookeeper and SOLR are deployed on the same server.

1. Configure Solr.xml

Locate the Solr.xml configuration file under the D:\Server\Solr folder and add the following node

<solr><cores leadervotewait= "${leadervotewait:15000}" hostcontext= "${hostcontext:}" hostPort= "8040" host= "${host:}" defaultcorename= "Deals" adminpath= "/admin/cores" ><core instancedir= "Collection1" Name= " Collection1 "/></cores></solr>

Hostcontext: Specify the service name
Hostport: Specify port
Leadervotewait: Election leader wait time ms

2. Configure Tomcat Parameters

In the Start menu, locate Monitor tomcat, open and switch to the Java tab, in the Java options Add the following parameter configuration

-dbootstrap_confdir=d:\server\solr\collection1/conf

-dcollection.configname=clusterconf
-dzkrun
-dzkhost=localhost:9040
-dnumshards=1

The following interface

Restart Tomcat, open the address http://localhost:8040/solr/#/~cloud and you'll see the effect.


Reference: http://demi-panda.com/2013/03/30/solr-cloud-install/

Related Article

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.