Solrcloud Installation Record

Source: Internet
Author: User
Tags solr


Delete Original OpenJDK



Mkdir/usr/java


Tar xzvf jdk-7u79-linux-x64.gz-c/usr/java/


Vim/etc/profile


Export java_home=/usr/java/jdk1.7.0_79


Export classpath= $JAVA _home/lib: $CLASSPATH


Export path= $JAVA _home/bin: $PATH


Source/etc/profile



Vim/etc/hosts


10.10.20.2 SOLR1

10.10.20.4 SOLR2

10.10.20.5 SOLR3


SSH Trust


Mkdir-p/apps/svr/

Mkdir-p/apps/data/zookeeper/

Mkdir-p/apps/data/zookeeper/logs/


Tar xzvf zookeeper-3.4.8.tar.gz-c/apps/svr/



Scp-r/apps/svr/zookeeper-3.4.8 [Email protected]:/apps/svr

Scp-r/apps/data [Email protected]:/apps/data



echo "1" >>/apps/data/zookeeper/myid

echo "2" >>/apps/data/zookeeper/myid

echo "3" >>/apps/data/zookeeper/myid



Vim/etc/init.d/zookeeper


#!/bin/bash

#

# chkconfig:345 30 70

# Description:starts/stops Apache Zookeeper

Export zoo_home=/apps/svr/zookeeper-3.4.8

Export zoo_bin= $ZOO _home/bin

Export zoo_ser_bin= $ZOO _bin/zkserver.sh

$ZOO _ser_bin $


chmod +x/etc/init.d/zookeeper

Chkconfig--add Zookeeper

Chkconfig Zookeeper on


Tar xzf solr-5.5.0.tgz solr-5.5.0/bin/install_solr_service.sh--strip-components=2


./install_solr_service.sh solr-5.5.0.tgz-i/apps/svr-d/apps/data/solrcloud-u solr-s solr-p 8983



vim/apps/data/solrcloud/solr.in.sh


Solr_java_mem= "-xms10g-xmx10g"

zk_host=10.10.20.2:2181,10.10.20.4:2181,10.10.20.5:2181



CP Ik-analyzer-solr5-5.x.jar/apps/svr/solr/server/solr-webapp/webapp/web-inf/lib

Cp-n/apps/svr/solr/dist/*.jar/apps/svr/solr/server/solr-webapp/webapp/web-inf/lib

CP Mysql-connector-java-5.1.35.jar/apps/svr/solr/server/lib



Su-c '/APPS/SVR/SOLR/BIN/SOLR create-c c1_cd-d/apps/data/solrcloud/opt/c1_cd_conf-n c1_cd-s 3-rf 2-port 8983 '-so Lr


http://localhost:8983/solr/admin/collections?action=create&name=core_cd&numshards=2& Replicationfactor=3



Server/scripts/cloud-scripts/zkcli.sh-zkhost Solr1:2181-cmd MAKEPATH/SOLR


Solrcloud Installation Record

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.