Deploying Elasticsearch
Cluster Planning
|
Node |
IP Address |
Number of Drives |
OS |
JDK |
|---|---|---|---|---|
|
Node 1 |
IPaddress1 |
System drive: 1 x RAID 0 (1 x 1.2 TB SAS HDD) Data drive: 4 x RAID 5 (12 x 1.2 TB SAS HDD) |
aarch64-linux-4.14.0-115.el7a.0.1.aarch64 |
OpenJDK version "1.8.0_181" |
|
Node 2 |
IPaddress2 |
|||
|
Node 3 |
IPaddress3 |
Deployment Process
- Create an elastic user.
The root user has no permissions to run Elastic.
1useradd elastic - Download the Elasticsearch installation package.
1wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.0.tar.gz - Decompress the package.
1tar -zxf elasticsearch-6.7.0.tar.gz -C ./
- Change the owner of the directory where the decompressed package resides to the elastic user:
1chown -R elastic:elastic elasticsearch-6.7.0
- Modify parameter settings.
- Open the configuration file.
1vi elasticsearch-6.7.0/config/elasticsearch.yml - Press i to enter the insert mode and modify the file based on your requirements.
#Cluster name cluster.name: my-estest #Node name node.name: ${HOSTNAME} #Configure the IP address of each node. network.host: IPaddress3 #Enter the IP addresses of all nodes in the cluster. discovery.zen.ping.unicast.hosts: ["IPaddress1","IPaddress2","IPaddress3"] #Add the following content (to solve the error "X-Pack is not supported and Machine Learning is not available for [linux-aarch64"): xpack.ml.enabled: false - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the configuration file.
- Run the startup command.
1su elastic -c "./elasticsearch-6.7.0/bin/elasticsearch -d"
- View the run logs.
1tail -500 elasticsearch-6.7.0/logs/my-estest.log
- Visit the following website.
For Windows, set the host to 90.90.43.202 hadoop102.
hadoop102:9200

Testing the Deployment
Check the cluster health status using the following address:
http://hadoop103:9200/_cat/health?v
If the following information is displayed, the deployment is successful:

Parent topic: Esrally Usage Guidance (for Elasticsearch)