
Open the jvm.options file: vim /home/elastic/elasticsearch/config/jvm.options

Log in to each master node and become the elastic user: sudo su - elastic To cluster.initial_master_nodes: Configure the heap for each node per instructions. To ed_hosts: Ĭhange the following on each node: #cluster.initial_master_nodes: Open the elasticsearch.yml file: vim /home/elastic/elasticsearch/config/elasticsearch.ymlĬhange the following line: #cluster.name: my-applicationĬhange the following line on master-1: #node.name: node-1Ĭhange the following line on master-2: #node.name: node-1Ĭhange the following line on master-3: #node.name: node-1Ĭhange the following line on data-1: #node.name: node-1Ĭhange the following line on data-2: #node.name: node-1Ĭhange the following line on data-3: #node.name: node-1Ĭhange the following line on master-1: #: r1Ĭhange the following line on master-2: #: r1Ĭhange the following line on master-3: #: r1Ĭhange the following line on data-1: #: r1Īdd the following line on data-1: : hotĬhange the following line on data-2: #: r1Īdd the following line on data-2: : hotĬhange the following line on data-3: #: r1Īdd the following line on data-3: : warmĪdd the following lines on master-1: node.master: trueĪdd the following lines on master-2: node.master: trueĪdd the following lines on master-3: node.master: trueĪdd the following lines on data-1: node.master: falseĪdd the following lines on data-2: node.master: falseĪdd the following lines on data-3: node.master: falseĬhange the following on each node: #network.host: 192.168.0.1Ĭhange the following on each node: #ed_hosts: Log in to each node and become the elastic user: sudo su - elastic Rename the unpacked directory: mv elasticsearch-7.2.1 elasticsearch Configure each node’s elasticsearch.yml per instructions. Remove the archive: rm elasticsearch-7.2.1-linux-x86_64.tar.gz Unpack the archive: tar -xzvf elasticsearch-7.2.1-linux-x86_64.tar.gz Load the new sysctl values: sudo sysctl -pīecome the elastic user: sudo su - elasticĭownload the binaries for Elasticsearch 7.2.1 in the elastic user’s home directory: curl -O Open the nf file as root: sudo vim /etc/nfĪdd the following line at the bottom: vm.max_map_count=262144 Open the nf file as root: sudo vim /etc/security/nfĪdd the following line near the bottom: elastic - nofile 65536

Successfully complete this lab by achieving the following learning objectives: Prepare each node, create the elastic user, and deploy Elasticsearch.Ĭreate the elastic user: sudo useradd elastic
