Hbase startup issue records

Source: Internet
Author: User
There was a problem with the Hbase startup in the test environment yesterday. The log shows transactiontype: 1 error: keeperrorcodenonodeforhbasehmaster and other process logs show that the connection to zookeeper cannot be found, and zookeeper startup is faulty. Therefore, it may be (% stylefont-size: 14px; line-height: normal; %

There was a problem with the Hbase startup in the test environment yesterday. The log shows: transaction type: 1 error: KeeperErrorCode = NoNode for/hbase hmaster and other process logs that indicate that the connection to zookeeper fails, zookeeper startup problems found. Therefore, it may be (% style = font-size: 14px; line-height: normal; %

An error occurred while starting Hbase in the test environment yesterday. The log shows:

Transaction type: 1 error: KeeperErrorCode = NoNode for/hbase

Other process logs such as hmaster show that zookeeper cannot be connected, and a problem occurs when zookeeper is started.

Therefore, it may be (% style = "font-size: 14px; line-height: normal;" %) that some data in zookeeper is lost and similar startup problems have occurred before, all data is cleared from zookeeper, which obviously cannot solve the problem fundamentally.

To further analyze and determine the hbase data directory, zookeeper is integrated into hbase for management because the testing environment is deployed in a pseudo-distributed manner, therefore, the zookeeper data is also in the temporary data directory of hbase. The temporary directory of hbase is stored in/tmp by default, while the/tmp directory of linux is cleaned regularly (refer to tmpwatch of linux system ). Now the problem has been clearly located. Modify the temporary directory location of hbase and solve the problem.

Hbase. rootdir

This directory is the shared directory of the region server for persistence of Hbase. The URL must be 'completely right' and contain the file system's scheme. For example, to indicate the '/hbase' directory in hdfs, namenode runs on port 9090 of namenode.example.org. You need to set it to hdfs :~ /~ /Namenode.example.org: 9000/hbase. By default, Hbase is written to/tmp. If this configuration is not modified, data will be lost.

Default Value: file :~ /~ // Tmp/hbase-$ {user. name}/hbase

Hbase. tmp. dir

Temporary folder of the local file system. It can be modified to a more persistent directory. (/Tmp will be cleared)

Default Value:/tmp/hbase-$ {user. name}

These two points are important points for hadoop/hbase system deployment and O & M.

Original article address: hbase startup issue record. Thank you for sharing it.

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.