安装版本
Elasticsearch(通过apt
方式安装):
- Elasticsearch 2.3.2
Jar插件:
- elasticsearch-analysis-ik: 1.9.2
- elasticsearch-analysis-pinyin: 1.7.2
- elasticsearch-analysis-stconvert: 1.8.2
Site插件:
- elasticsearch-head: 最新版
各节点服务器
- Node1
- 集群名:
search-1
- 节点名:
node-1
- 内网IP:
192.168.31.171
- 集群名:
- Node2
- 集群名:
search-1
- 节点名:
node-2
- 内网IP:
192.168.31.221
- 集群名:
- Node3
- 集群名:
search-1
- 节点名:
node-3
- 内网IP:
192.168.31.154
- 集群名:
各节点安装的插件
Node | Installed Plugins |
---|---|
Node1 | ik, pinyin, stconvert, head |
Node1 | ik, pinyin, stconvert |
Node1 | ik, pinyin, stconvert |
各节点配置
三节点的配置:
- Node 1
1 | cluster.name: search-1 |
- Node 2
1 | cluster.name: search-1 |
- Node 3
1 | cluster.name: search-1 |
常用操作
上传插件
1 | $ scp -r -i ~/dev.pem elasticsearch-analysis-ik-1.9.2 ubuntu@192.168.31.171:~/ |
拷贝插件到/usr/share/elasticsearch/plugins
目录
1 | $ mv elasticsearch-analysis-ik-1.9.2 /usr/share/elasticsearch/plugins/ |