Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13139

Clean up missing JAVA_HOME message in bin/hbase-config.sh

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.98.10.1, 2.0.0
    • Fix Version/s: 1.0.1, 1.1.0, 0.98.12, 2.0.0
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The message needs to be consisten to what the script does:

      Currently we say:

      # Now having JAVA_HOME defined is required
      if [ -z "$JAVA_HOME" ]; then
          cat 1>&2 <<EOF
      +======================================================================+
      |      Error: JAVA_HOME is not set and Java could not be found         |
      +----------------------------------------------------------------------+
      | Please download the latest Sun JDK from the Sun Java web site        |
      |       > http://java.sun.com/javase/downloads/ <                      |
      |                                                                      |
      | HBase requires Java 1.7 or later.                                    |
      | NOTE: This script will find Sun Java whether you install using the   |
      |       binary or the RPM based installer.                             |
      +======================================================================+
      EOF
      

      this should be more like this:

      +======================================================================+
      |                    Error: JAVA_HOME is not set                       |
      +----------------------------------------------------------------------+
      | Please download the latest Sun JDK from the Sun Java web site        |
      |       > http://java.sun.com/javase/downloads/ <                      |
      |                                                                      |
      | HBase requires Java 1.7 or later.                                    |
      +======================================================================+
      

        Attachments

          Activity

            People

            • Assignee:
              esteban Esteban Gutierrez
              Reporter:
              esteban Esteban Gutierrez
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: