相关脚本:
//启动单节点
bin/elasticsearch -E node.name=node0 -E cluster.name=fatsnake -E path.data=node0_data
//安装插件
bin/elasticsearch-plugin install analysis-icu
//查看插件
bin/elasticsearch-plugin list
//查看安装的插件
GET http://localhost:9200/_cat/plugins?v
安装插件后如果看不到,请重启节点
//start multi-nodes Cluster -d 为后台运行的方式
bin/elasticsearch -E node.name=node0 -E cluster.name=fatsnake -E path.data=node0_data -d
bin/elasticsearch -E node.name=node1 -E cluster.name=fatsnake -E path.data=node1_data -d
bin/elasticsearch -E node.name=node2 -E cluster.name=fatsnake -E path.data=node2_data -d
bin/elasticsearch -E node.name=node3 -E cluster.name=fatsnake -E path.data=node3_data -d
// 杀掉进程
ps | grep elasticsearch
kill -9 pid
//查看集群
GET http://localhost:9200
//查看nodes
GET http://localhost:9200/_cat/nodes
GET http://localhost:9200/_cluster/health
## 相关阅读
- https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html
- https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html
- https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html
- Elasticsearch on Kuvernetes https://www.elastic.co/cn/blog/introducing-elastic-cloud-on-kubernetes-the-elasticsearch-operator-and-beyond
- CAT Plugins API https://www.elastic.co/guide/en/elasticsearch/reference/7.1/cat-plugins.html