Skip to content

Instantly share code, notes, and snippets.

@anubhavsinha
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anubhavsinha/7be5047fbd9029fca37d to your computer and use it in GitHub Desktop.
Save anubhavsinha/7be5047fbd9029fca37d to your computer and use it in GitHub Desktop.
install elastic search on Ubuntu 14.04 (assuming Java version 8, update 20 already installed)
# But first install Java version update 20
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.2.zip
apt-get install unzip
unzip elasticsearch-1.5.2 -d /usr/local/elasticsearch
cd /usr/local/elasticsearch/elasticsearch-1.5.2/
bin/plugin -install elasticsearch/elasticsearch-cloud-aws/2.4.1
bin/plugin -i elasticsearch/marvel/latest
echo "ulimit -n 32000" > /etc/rc.local # we need to increase the max file descriptors from 4096 to 32k
echo "export ES_HEAP_SIZE=30g" > /etc/rc.local # keep heap size half of the total available RAM. Should be under 32g to avoid jvm issues.
echo "cd /usr/local/elasticsearch/elasticsearch-1.5.2/ && bin/elasticsearch -d" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
# Don't forget to open the port 9200, 9300 in your security group
#http://node_ip:9200/_plugin/marvel/
# add credentials in config file elasticsearch.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment