whathetech Elasticsearch Installation of Elasticsearch

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:

  1. Index API: Used to document the index.
  2. Get API: Used to retrieve the document.
  3. Search API: Used to submit your query and get a result.
  4. 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

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

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


Tags: ,