From d2f1179a020c182cbdd0f83c5e1de537c4521e4f Mon Sep 17 00:00:00 2001 From: Gokul Date: Thu, 28 Feb 2019 11:11:55 +0530 Subject: [PATCH] HBASE-20754 [documentation] quickstart guide should instruct folks to set JAVA_HOME to a JDK installation. --- .../asciidoc/_chapters/getting_started.adoc | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/main/asciidoc/_chapters/getting_started.adoc b/src/main/asciidoc/_chapters/getting_started.adoc index 84ebcaa67b..96bc9d066c 100644 --- a/src/main/asciidoc/_chapters/getting_started.adoc +++ b/src/main/asciidoc/_chapters/getting_started.adoc @@ -67,18 +67,15 @@ $ 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_. -+ ----- -JAVA_HOME=/usr ----- +. You must set the `JAVA_HOME` environment variable before starting HBase. + To make this easier, HBase lets you set it within the _conf/hbase-env.sh_ file. You must locate where Java is + installed on your machine, and one way to find this is by using the _whereis java_ command. Once you have the location, + edit the _conf/hbase-env.sh_ file and uncomment the line starting with _#export JAVA_HOME=_, and then set it to your Java installation path. ++ +.Example extract from _hbase-env.sh_ where _JAVA_HOME_ is set + # Set environment variables here. + # The java implementation to use. + export JAVA_HOME=/usr/jdk64/jdk1.8.0_112 + . Edit _conf/hbase-site.xml_, which is the main HBase configuration file. -- 2.19.1