Hello everyone!
I’m back ! 🙂
So, I’m working on setting up an Elasticsearch cluster (version 6.2.1) and I wanted to share some advices with you !
First of all, you need to have AWS account !! not difficult, you only need to connect here :Â https://aws.amazon.com/fr/
After that, you need to create a new EC2 instance (in my case):
Now, you need to download :
You can either download it directly from your EC2 instance (via wget command) or download it locally on your desktop and use wincp to copy those files to your EC2 instance.
Now, let’s untar elasticsearch and jdk:
Now, we will try to start our elasticsearch instance:
but! we are getting these 2 errors :
Actually, since Elasticsearch 5, you cannot bind your elasticsearch instance to 0.0.0.0 only if you set these 2 params:
It’s considered as a “PROD” instance if you bind your elasticsearch instance to 0.0.0.0. So, before it starts, Elasticsearch will check those 2 system configurations !
Now, we’re good ! we can start our Elasticsearch instance “./bin/elasticsearch -d” (on background)!
Check it here :Â http://ec2-184-72-102-44.compute-1.amazonaws.com:9200/
PS : don’t forget to check in your security group policies, that you allowed http communication on port 9200 !