Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tmp2000/9506668 to your computer and use it in GitHub Desktop.
Save tmp2000/9506668 to your computer and use it in GitHub Desktop.

Install & Setup ElasticSearch Gittip

Author: Josef Jezek

Install

Check Download page for latest version of ElasticSearch and update VERSION

Ubuntu / Debian

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

CentOS / Red Hat

yum install java-1.7.0-openjdk wget curl -y
wget --no-cookies --no-check-certificate \
     --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \
     "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm"
     
vi + /etc/profile
Add the follwing to the end:
JAVA_HOME=/usr/java/jdk1.7.0_51
JRE_HOME=/usr/java/jdk1.7.0_51/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH

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

Check installed package

curl http://localhost:9200
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl -XGET 'http://localhost:9200/_cluster/state'

Setup

Resources

Notes

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment