Skip to content

Instantly share code, notes, and snippets.

@nikos83
Created March 17, 2022 08:30
Show Gist options
  • Save nikos83/a1ad8ce014e98e031c958640b80bf293 to your computer and use it in GitHub Desktop.
Save nikos83/a1ad8ce014e98e031c958640b80bf293 to your computer and use it in GitHub Desktop.
How to install older Elasticsearch via version manager on Catalina and older Java8
# First install elasticsearch manager from
https://github.com/duydo/evm
sudo curl -o /usr/local/bin/evm https://raw.githubusercontent.com/duydo/evm/master/evm
sudo chmod +x /usr/local/bin/evm
evm install 6.8.20
# select default version
evm use 6.8.20
# start elasticsearch server
evm start
# in case you don't have java and java_home you'll get error
# warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
# No Java runtime present, requesting install.
# install third party repo
brew tap adoptopenjdk/openjdk
brew install --cask adoptopenjdk8
evm start
# you may get JAVA_HOME waring but all will work as it should
# enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment