HBase cluster cannot find java_home at startup

Source: Internet
Author: User

HBase cluster at boot time can not find java_home problem, start the cluster when the error message is as follows:

[Email protected]:/usr/local/hbase-0.90.4/bin#./start-hbase.SHstarting master, logging to/usr/local/hbase-0.90.4/bin/. /logs/hbase-root-master-master.outslave1:+======================================================================+slave1:| Error:java_home is not set and JAVA could isn't be found |slave1:+----------------------------------------------------------------------+slave1:| Download the latest Sun JDK from the Sun Java Web site |slave1:| > http://java.sun.com/javase/downloads/< |SLAVE1: | |slave1:| HBase requires Java1.6or later. |slave1:| Note:this script wouldFindSun Java Whether youInstallUsing the |slave1:|                             Binary or the RPM based installer. |slave1:+======================================================================+slave2:+======================================================================+slave2:| Error:java_home is not set and JAVA could isn't be found |slave2:+----------------------------------------------------------------------+slave2:| Download the latest Sun JDK from the Sun Java Web site |slave2:| > http://java.sun.com/javase/downloads/< |Slave2: | |slave2:| HBase requires Java1.6or later. |slave2:| Note:this script wouldFindSun Java Whether youInstallUsing the |slave2:|                             Binary or the RPM based installer. |slave2:+======================================================================+

If the above error occurs, you should modify the environment variable of the Java_home in the hbase-env.sh file under the Conf file, either the Java_home before the # is not removed, or the path configuration error of Java_home is checked carefully.

HBase cluster cannot find java_home at startup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.