Install Elasticsearch Mac OSX 10.9.1

I waded through a few sets of instructions that didn’t work for me, so I figured i’d post the ones that did work.

  1. Download and unzip/untar the Elasticsearch files
  2. Download the latest version of Java (woo!)
  3. Copy the directory to /usr/local: sudo mv elasticsearch /usr/local
  4. To start it just execute: /usr/local/elasticsearch/bin/elasticsearch -f
  5. To stop it, just hit command+c

Optional steps to allow you to start the service with just the ‘elasticsearch -f’ command:

  1. Open your .bash_profile file for your bash profile settings
  2. Add export ES_HOME=~/usr/local/elasticsearch/bin
  3. Add export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home
  4. Add export PATH=$ES_HOME/bin:$JAVA_HOME/bin:$PATH
  5. Run ‘source ~/.bash_profile’ from terminal

Leave a Reply

Your email address will not be published. Required fields are marked *