sudo yum install java-1.8.0
Remove
sudo yum remove java-1.7.0-openjdk
Get ES
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.rpm
Use the root user
sudo su
Install ES
sudo rpm --install elasticsearch-6.2.4.rpm
Run ES on system startup
sudo chkconfig --add elasticsearch
Go inside the elasticsearch directory
cd /usr/share/elasticsearch/
Install the plugins
sudo bin/elasticsearch-plugin install discovery-ec2 sudo bin/elasticsearch-plugin install repository-s3
Change the jvm heap size
sudo nano /etc/elasticsearch/jvm.options
->
-Xms512m
-Xmx512m
Change the configuration to allow remote access
nano /etc/elasticsearch/elasticsearch.yml
Add this
http.host: 0.0.0.0
Run
sudo /etc/init.d/elasticsearch restart
or
sudo service elasticsearch start
Then finally, check
curl localhost:9200/_cluster/health?pretty
References:
References:
0 comments:
Post a Comment