...
- Install Elasticsearch with Docker (Reference: https://www.elastic.co/guide/en/elasticsearch/reference/7.5/docker.html)
sudo docker pull docker.elastic.co/elasticsearch/elasticsearch:7.5.2
# Spin up an Elasticsearch cluster with 3 nodesIncrease max map count:
sudo sysctl -w vm.max_map_count=262144
# Spin up an Elasticsearch cluster with 3 nodes:
# Create a file docker-compose.yml with the following contents in your working directory
...
cd /usr/share/elasticsearch
# Install plugins one after the other :
elasticsearch-plugin install --batch analysis-icu
elasticsearch-plugin install --batch analysis-kuromoji
elasticsearch-plugin install --batch analysis-smartcn
elasticsearch-plugin install --batch analysis-nori
elasticsearch-plugin install --batch analysis-phonetic
exit
# Now do the same thing inside the other two Elasticsearch containers es02
and es03
.
...
Check, if the plugins have been installed. Log in into one docker container:
Code Block |
---|
sudo docker exec -it es01 sh
sh-4.2# cd plugins/
sh-4.2# ls
analysis-icu analysis-kuromoji analysis-nori analysis-phonetic analysis-smartcn
exit |
...