Installing an old version of ElasticSearch 1.7 which requires Java 8 for development.

Install Java 8

To install without clobbering your existing version use sdkman.

export SDKMAN_DIR="$HOME/bin/sdkman"
curl -s "" | bash
exec $SHELL

Then install your chosen version of Java:

sdk install 8.0.222-amzn
sdk use 8.0.222-amzn
java -version

Download ElasticSearch version 1.7

cd ~/bin
curl -L -O
tar -xvf elasticsearch-1.7.6.tar.gz

And start

cd elasticsearch-1.7.6/bin

When starting in the future you will need to do sdk use 8.0.222-amzn first.