Hortonworks HDP Sandbox 2.2 fixes an issue in which HBase does not start

Source: Internet
Author: User
Tags zookeeper hortonworks

In the latest release of the Hortonworks HDP Sandbox version 2.2, HBase starts with an error, because the new version of HBase's storage path is different from the past, and the startup script still inherits the old command line to start HBase, The hbase-daemond.sh file could not be found and failed to start. See, the 2.2 version of the sandbox release a little hasty, so obvious and simple mistakes should not appear. Here's how to fix the problem:

The command that is most responsible for starting hbase is stored in the/USR/LIB/HUE/TOOLS/START_SCRIPTS/START_DEPS.MF file, first, to make a backup of the file:

Cp/usr/lib/hue/tools/start_scripts/startup_script/usr/lib/hue/tools/start_scripts/startup_script.bak

And then:

Vim/usr/lib/hue/tools/start_scripts/startup_script

Find the line starting with Hbase_master:postgresql zookeeper, as follows:

Hbase_master:postgresql Zookeeper $ (call colorized, HBase master, su-hbase-c "/u sr/hdp/current/hbase/bin/hbase-daemon.sh--config/etc/hbase/conf Start Master ", sleep 25,/ Var/log/hbase/hbase-hbase-master-*.log) Hbase_stargate:postgresql Hbase_master $ (call colorized, HBA                Se Stargate, su-l hbase-c "/usr/hdp/current/hbase/bin/hbase-daemon.sh start rest-p 60080", True,/var/log/hbase/hbase-hbase-rest-*.log) Hbase_thrift:postgresql Hbase_master $ (Call Colorize                D, HBase Thrift, su-l hbase-c "/usr/hdp/current/hbase/bin/hbase-daemon.sh start Thrift", True,/var/log/hbase/hbase-hbase-rest-*.log) Hbase_regionservers:hbase_master $ (call colorized, HBase regionservers, su-l hbase-c "/usr/hdp/current/hbase/bin/hbase-daemon.sh --config/etc/hbase/conf Start Regionserver ", Sleep 5,/var/log/hbase/hbase-hbase-regionserver-*.log) 

We can see that all of the commands that start HBase related services are used by/usr/hdp/current/hbase/bin/hbase-daemon.sh this file, and in the new version, the/usr/hdp/ Current under current has no hbase this directory, replaced by Hbase-master,hbase-regionserver,hbase-master, so we need to base on the type of service started, Select the hbase-daemond.sh under the corresponding directory. Here's what's changed:

Hbase_master:postgresql Zookeeper $ (call colorized, HBase master, su-hbase-c "/u                sr/hdp/current/hbase-master/bin/hbase-daemon.sh--config/etc/hbase/conf Start Master ", sleep 25,                /var/log/hbase/hbase-hbase-master-*.log) Hbase_stargate:postgresql Hbase_master $ (call colorized, HBase Stargate, Su-l hbase-c "/usr/hdp/current/hbase-client/bin/hbase-daemon.sh start rest-p 60080" , true,/var/log/hbase/hbase-hbase-rest-*.log) Hbase_thrift:postgresql Hbase_master $ (Call colorized, HBase Thrift, su-l hbase-c "/usr/hdp/current/hbase-client/bin/hbase-daem on.sh start Thrift ", True,/var/log/hbase/hbase-hbase-rest-*.log) hbase_regionservers:hbase_ Master $ (call colorized, HBase regionservers, su-l hbase-c "/usr/hdp/current/hbase -regionserver/bin/hbase-daemon.sh--config/etc/hbase/conf start Regionserver ", Sleep 5,/var/log/hbase/hbase-hbase- Regionserver-*.log)



Hortonworks HDP Sandbox 2.2 fixes an issue in which HBase does not start

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.