Installation of Elasticsearch
Step by Step instructions on how to install elasticsearch
Elasticsearch is an open-source, RESTful, distributed search and analytics engine built on Apache Lucene.
Every feature of Elasticsearch is exposed as a REST API:
- Index API: Used to document the index.
- Get API: Used to retrieve the document.
- Search API: Used to submit your query and get a result.
- Put Mapping API: Used to override default choices and define the mapping.
Elasticsearch requires at least Java 8. It is recommended that you use the Oracle JDK version 1.8.0_131.
from the command line, type:
java -version echo $JAVA_HOME </pre></p>
Installation example with tar:
Let’s download the Elasticsearch 6.4.2 tar as follows:
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.2.tar.gz
Then extract it as follows:
tar -xvf elasticsearch-6.4.2.tar.gz cd elasticsearch-6.4.2/bin ./elasticsearch
The last command should start elasticsearch
You can add the path to bashrc so that it can be started from anywhere.
sudo vi ~/.bashrc #Elastic search path export PATH=$PATH:/[PATH TO Elastic]/bin