AKAI TSUKI

System development or Technical something

install eleasticsearch on CentOS 7.3

ref

install logstash on CentOS 7.3 - AKAI TSUKI
install kibana on CentOS 7.3 - AKAI TSUKI

environment

hostname ip node
cent7no31 172.16.10.231 Coordinating node
cent7no11 172.16.10.211 Master/Data node
cent7no12 172.16.10.212 Master/Data node
cent7no13 172.16.10.213 Master/Data node

install

install java in all node

# yum install -y java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64

install java in all node

# rpm -ivh https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.3.rpm

configure

# vi /etc/elasticsearch/elasticsearch.yml

cent7no31

[root@cent7no31 elasticsearch]# grep -v "^#" /etc/elasticsearch/elasticsearch.yml | grep -v "^$"
cluster.name: test-cluster
node.name: cent7no31
network.host: 172.16.10.231
discovery.zen.ping.unicast.hosts: ["cent7no11", "cent7no12", "cent7no13", "cent7no31"]
node.master: false
node.data: false
node.ingest: false
[root@cent7no31 elasticsearch]#

cent7no11

[root@cent7no11 ~]# grep -v "^#" /etc/elasticsearch/elasticsearch.yml | grep -v "^$"
cluster.name: test-cluster
node.name: cent7no11
network.host: 172.16.10.211
discovery.zen.ping.unicast.hosts: ["cent7no11", "cent7no12", "cent7no13", "cent7no31"]
discovery.zen.minimum_master_nodes: 2
node.master: true
node.data: true
node.ingest: false
[root@cent7no11 ~]#

cent7no12

[root@cent7no12 elasticsearch]# grep -v "^#" /etc/elasticsearch/elasticsearch.yml | grep -v "^$"
cluster.name: test-cluster
node.name: cent7no12
network.host: 172.16.10.212
discovery.zen.ping.unicast.hosts: ["cent7no11", "cent7no12", "cent7no13", "cent7no31"]
discovery.zen.minimum_master_nodes: 2
node.master: true
node.data: true
node.ingest: false
[root@cent7no12 elasticsearch]#

cent7no13

[root@cent7no13 elasticsearch]# grep -v "^#" /etc/elasticsearch/elasticsearch.yml | grep -v "^$"
cluster.name: test-cluster
node.name: cent7no13
network.host: 172.16.10.213
discovery.zen.ping.unicast.hosts: ["cent7no11", "cent7no12", "cent7no13", "cent7no31"]
discovery.zen.minimum_master_nodes: 2
node.master: true
node.data: true
node.ingest: false
[root@cent7no13 elasticsearch]#