Install & Setup ElasticSearch 
Author: Josef Jezek
Check Download page for latest version of ElasticSearch and update VERSION
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless wget curl -y
VERSION=0.20.6
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb
sudo dpkg -i elasticsearch-$VERSION.deb
sudo service elasticsearch start
yum install java-1.7.0-openjdk wget curl -y
VERSION=0.90.0.RC2
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.noarch.rpm
sudo rpm -i elasticsearch-$VERSION.noarch.rpm
sudo service elasticsearch start
curl http://localhost:9200
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl -XGET 'http://localhost:9200/_cluster/state'