SolrCloud 5.2.1 installation and configuration
虽然不是很有技术含量的事情,主要依靠的是阅读能力,然而知识的东西还是记录一下,以备后继待查。
环境相关
1. Server:h1,h2,h3
2. OS RHEL 6.2
3. Zookeeper 3.4.6
4. Solr 5.2.1
下载相关
1. Solr 5.2.1
wget http://archive.apache.org/dist/lucene/solr/5.2.1/solr-5.2.1.zip
2. Zookeeper 3.4.6
wget http://mirror.nexcess.net/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
Zookeeper安装
Quick Start https://zookeeper.apache.org/doc/trunk/zookeeperStarted.html
MultiServer https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkMulitServerSetup
最后在h1、h2、h3上安装并启动了Zookeeper。
SolrCloud安装
1. 在h1上解压下载的zip文件,命名为solr-5.2.1
2. 拷贝样例,作为新节点的solr-home
cp -r solr-5.2./server/solr solr-node-
3. 在h2、h3上进行类似的操作
最后在h1、h2、h3上分别有solr-node-1、solr-node-2、solr-node-3,以及solr-5.2.1
SolrCloud启动
使用solr的zkcli.sh创建一个solr的Zookeeper路径
solr-5.2./server/scripts/cloud-scripts/zkcli.sh -zkhost h1: -cmd makepath /solr
启动solr-node-1节点:-z 指定zk地址;-s 指定solr-home位置;-p 指定启动端口
solr-5.2./bin/solr -z h1:,h2:,h3:/solr -s solr-node-/solr -p
相应的启动其他节点;查看集群状态
curl "http://localhost:8983/solr/admin/collections?action=clusterstatus&wt=json"
Collection创建
1. 拷贝样例,作为配置基础
cp -r solr-5.2./server/solr/configsets/sample_techproducts_configs my_configs
2. 根据需要增加schema.xml中的field配置
3. 上传配置到Zookeeper
./solr-5.2./server/scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost h1:/solr -confname my_configs -confdir ~/zrss/my_configs/conf/
4. 将配置与Collection链接
./solr-5.2./server/scripts/cloud-scripts/zkcli.sh -cmd linkconfig -collection my_configs -confname my_configs -z h1:/solr
相关文档
https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+Files
https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities
5. 创建Collection
curl "http://localhost:8983/solr/admin/collections?action=CREATE&name=demo_collection&numShards=2&replicationFactor=2&configName=my_configs"
过程中学习到的几个常用linux命令
查看端口被进程占用情况
lsof -i:PORT
查看进程启动位置
lsof -p PID | grep cwd
查看进程占用的端口号
netstat –nltp | grep PID
SolrCloud 5.2.1 installation and configuration的更多相关文章
- P6 EPPM Installation and Configuration Guide 16 R1 April 2016
P6 EPPM Installation and Configuration Guide 16 R1 April 2016 Contents About Installing and ...
- P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1
P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1 May ...
- installation and configuration of OpenCV4Android SDK
http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#running-opencv ...
- !! This tutorial was designed to help you with installation and configuration of OpenCV4Android SDK.
ref: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#running-o ...
- HHVM Installation and Configuration(HHVM 安装及配置)
Installation and Configuration¶ General Installation Considerations Installation on Linux systems Ub ...
- SharePoint 2013 Installation and Configuration Issues
# Issue 1: During Installing SharePoint 2013 Prerequisites there was an error in installing Applicat ...
- Installation and Configuration MySQL Cluster 7.2 on CentOS 5 (include MySQL 5.5)
Architecture Manager Node mysql-mag1 192.168.1.31 mysql-mag2 192.168.1.32 SQL Node mysql-sql1 ...
- HAProxy Installation and Configuration on CentOS 6.4 to Mitigate The Effects of Abusive Clients--转
ref:http://thoughts.z-dev.org/2013/05/07/haproxy-installation-and-configuration-on-centos-6-4-to-mit ...
- Installation and Configuration Guide
Harbor can be installed by one of three approaches: Online installer: The installer downloads Harbor ...
随机推荐
- SKTextureAtlas类
继承自 NSObject 符合 NSCodingNSObject(NSObject) 框架 /System/Library/Frameworks/SpriteKit.framework 可用性 可用 ...
- [Redux] Avoiding Object Mutations with Object.assign() and ...spread
Learn how to use Object.assign() and the spread operator proposed for ES7 to avoid mutating objects. ...
- Java基础知识强化79:被遗忘的Java Math类
1. Math类概述 Math类包含用于执行基本数学运算的方法,如初等指数.对数.平方根和三角函数. 2. 成员变量 和 成员方法(常用的) (1)成员变量 public static final d ...
- select 响应时间 js
HTML form select表单标签案例代码如下: 跳转菜单的需要放在head头部标签内的JS脚本代码:<script type="text/javascript"> ...
- python 下的数据结构与算法---6:6大排序算法
顶先最后推荐:哈哈,意思是放到顶部强调其重要性,但是应该我总结的六种算法看完了后再看的一篇醍醐灌顶的文章 一:冒泡排序(Bubble Sort) 原理:假设有n个数,第一轮时:从第一个元素开始,与相邻 ...
- linux的make install命令
tar zxvf redis-2.8.15.tar.gz cd redis-2.8.15/ make make test make install
- 增加Android模拟器的内存
1,在window中,打开'C:\Users\Administrator\.android\avd\4.4.2.avd\config.ini'文件(我的是win7,xp的貌似不是'Users',是'D ...
- MSSQL 简单练习回顾
这段时间,报了浦软培训的.NET,现在整理回顾下,算是个小小总结吧 为了便于操作,我没有在多个数据库间切换数据库实例,以一个总的数据库实例 test_demo为源进行的相关操作,代码的注释根据我的理解 ...
- Ubuntu 11.10 安装GMONE3,卸载 UNITY和UNITY 2D
Ubuntu 11.10安装GNOME3: 1)sudo apt-get install gnome-shell sudo apt-get install gnome-themes* (或者 ...
- Asp.net Repeater控件
Repeater控件和DataList控件,可以用来一次显示一组数据项.比如,可以用它们显示一个数据表中的所有行. Repeater控件完全由模板驱动,提供了最大的灵活性,可以任意设置它的输出 ...