Elasticsearch Installation and Configuration

Elasticsearch is …

  • Open Source (Apache 2)
  • Distributed
  • RESTful
  • Search Engine built on top of Apache Lucene.

It is …..

  1. Very fast
  2. Schema Free
  3. JSON over HTTP
  4. Scale to hundred and real time search.

 Installation

Elasticsearch is based on java, so we need to install JAVA>6


yum install java-1.7.0-openjdk.x86_64
java -version

Download source from


wget https://download.elasticsearch.org/
elasticsearch/elasticsearch/elasticsearch-0.20.5.tar.gz
tar -xvf elasticsearch-0.20.5.tar.gz
cp -r elasticsearch-0.20.5.tar.gz elasticsearch
cd elasticsearch

Add elastic home path in “.bash_profile”


export $ES_HOME=/home/elasticsearch

Start/Run Elasticsearch


cd elasticsearch
bin/elasticsearch -f

Is it started?

You can confirm it by browsing URL like - http://127.0.0.1:9200/, it will shows something like


{
"ok" : true,
"status" : 200,
"name" : "Neville, Kate",
"version" : {
"number" : "0.20.5",
"snapshot_build" : false
},
"tagline" : "You Know, for Search"
}

 

Categories: Elasticsearch, Linux, Website Peformance