Rate This Document
Findability
Accuracy
Completeness
Readability

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

  1. Create an elastic user.

    The root user has no permissions to run Elastic.

    1
    useradd elastic
    
  2. Download the Elasticsearch installation package.
    1
    wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.0.tar.gz
    
  3. Decompress the package.
    1
    tar -zxf elasticsearch-6.7.0.tar.gz -C ./
    
  4. Change the owner of the directory where the decompressed package resides to the elastic user:
    1
    chown -R elastic:elastic elasticsearch-6.7.0
    
  5. Modify parameter settings.
    1. Open the configuration file.
      1
      vi elasticsearch-6.7.0/config/elasticsearch.yml
      
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the startup command.
    1
    su elastic -c "./elasticsearch-6.7.0/bin/elasticsearch -d"
    
  7. View the run logs.
    1
    tail -500 elasticsearch-6.7.0/logs/my-estest.log
    
  8. 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: