From b7f1f2b78a1a430c53f19462ebce52ff392f655f Mon Sep 17 00:00:00 2001 From: Gokul Date: Wed, 27 Feb 2019 13:56:08 +0530 Subject: [PATCH] Updates for HBase-20754 Quickstart guide should instruct folks to set JAVA_HOME to a JDK installation. --- .../asciidoc/_chapters/getting_started.adoc | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/main/asciidoc/_chapters/getting_started.adoc b/src/main/asciidoc/_chapters/getting_started.adoc index 84ebcaa67b..528632a22e 100644 --- a/src/main/asciidoc/_chapters/getting_started.adoc +++ b/src/main/asciidoc/_chapters/getting_started.adoc @@ -67,18 +67,17 @@ $ tar xzvf hbase-{Version}-bin.tar.gz $ cd hbase-{Version}/ ---- -. You are required to set the `JAVA_HOME` environment variable before starting HBase. - You can set the variable via your operating system's usual mechanism, but HBase - provides a central mechanism, _conf/hbase-env.sh_. - Edit this file, uncomment the line starting with `JAVA_HOME`, and set it to the - appropriate location for your operating system. - The `JAVA_HOME` variable should be set to a directory which contains the executable file _bin/java_. - Most modern Linux operating systems provide a mechanism, such as /usr/bin/alternatives on RHEL or CentOS, for transparently switching between versions of executables such as Java. - In this case, you can set `JAVA_HOME` to the directory containing the symbolic link to _bin/java_, which is usually _/usr_. +. Set the `JAVA_HOME` environment variable before starting HBase. HBase provides a central mechanism to set `JAVA_HOME`. To set `JAVA_HOME`, + Locate where Java is installed on your machine using the _whereis java_ command. + Edit the _conf/hbase-env.sh_ file, uncomment the line starting with _#export JAVA_HOME=_, + and then set it to your Java installation path. + ----- -JAVA_HOME=/usr ----- +.Example extract from _hbase-env.sh_ where JAVA_HOME is set + + # Set environment variables here. + + # The java implementation to use. Java 1.6 required. + export JAVA_HOME=/usr/jdk64/jdk1.8.0_112 + . Edit _conf/hbase-site.xml_, which is the main HBase configuration file. -- 2.19.1