This is an automated email from the ASF dual-hosted git repository.

openinx pushed a commit to branch HBASE-21879
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit c989790edbce0edeaad3f98950d68a6d33a99f00
Author: Gokul <[email protected]>
AuthorDate: Thu Feb 28 11:11:55 2019 +0530

    HBASE-20754 [documentation] quickstart guide should instruct folks to set 
JAVA_HOME to a JDK installation.
    
    Signed-off-by: Sean Busbey <[email protected]>
---
 src/main/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 84ebcaa..96bc9d0 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.

Reply via email to