From b81261034b0d7ca0f4e81efaa5de26fc36529b7a Mon Sep 17 00:00:00 2001 From: aetter Date: Thu, 8 Jul 2021 10:47:51 -0700 Subject: [PATCH] Add example version, correct command --- _opensearch/install/compatibility.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_opensearch/install/compatibility.md b/_opensearch/install/compatibility.md index bfc8f489..3608af4c 100644 --- a/_opensearch/install/compatibility.md +++ b/_opensearch/install/compatibility.md @@ -8,7 +8,9 @@ nav_order: 2 # Operating system and JVM compatibility - We recommend installing OpenSearch on RHEL- or Debian-based Linux distributions that use [systemd](https://en.wikipedia.org/wiki/Systemd), such as CentOS, Amazon Linux 2, and Ubuntu (LTS). OpenSearch should work on many Linux distributions, but we only test a handful. -- The OpenSearch tarball ships with a compatible version of Java in the `jdk` directory. To find its version, run `./bin/opensearch --version`. +- The OpenSearch tarball ships with a compatible version of Java in the `jdk` directory. To find its version, run `./jdk/bin/java -version`. For example, the OpenSearch 1.0.0 tarball ships with Java 15 (non-LTS). + +{% comment %}`./jdk/bin/java -version` doesn't work on macOS with zsh at the moment, and I have no idea why. Maybe we need a macOS artifact. Regardless, the command works on Amazon Linux 2 with bash and presumably other distros. - aetter{% endcomment %} To use a different Java installation, set the `OPENSEARCH_JAVA_HOME` environment variable to the Java install location. We recommend Java 11 (LTS), but OpenSearch also works with Java 8.