Hbase could not create table create table the card won't stay

Source: Internet
Author: User

HBase Shell cannot create a reason analysis for a table.


A. Phenomenon:

HBase was installed some time ago

HBase Shell

The list status command works correctly after you go in.

But execute the build statement:

Create ' AAA ', ' BBB '

He has been stuck there, not to report any errors, the log has been brushing the following debug log:

DEBUG org.apache.hadoop.hbase.client.hconnectionmanager$hconnectionimplementation:lookedup Root Region location, connection=org.apache.hadoop.hbase.client.hconnectionmanager$hconnectionimplementation@23faa614; Servername=

INFO org.apache.hadoop.hbase.master.ServerManager:Waiting on Regionserver (s) to checkin


And then I went into hive. You can also execute a view statement but not create a table.

The state is only readable and cannot be written.


Two. Workaround:

Namenode first enters the safe mode when the boot, if Datanode loses the block to reach a certain proportion, then the system will be in the Safe Mode state namely read-only state.

dfs.safemode.threshold.pct (default 0.999f) indicates that when HDFs starts, it is always this read-only mode if the number of blocks reported by Datanode reaches 0.999 times times the block number of the metadata record to leave safe mode. If set to 1, HDFs is always in safemode.

There are two ways to get out of this safe mode
(1) Modify dfs.safemode.threshold.pct to a relatively small value, the default is 0.999.
(2) Hadoop dfsadmin-safemode leave command forced to leave

The user can operate the Safe mode by Dfsadmin-safemode value, the parameter value is described as follows: 1. Enter-Enter Safe mode
2. Leave-Force Namenode to leave Safe mode
3. Get-Returns information about whether Safe mode is turned on
4. Wait-waits until the end of safe mode.


My approach is to force out of safe mode.

into the bin directory of Hadoop,

Perform:

Hadoop Dfsadmin-safemode Leave



Then I went into hive and HBase separately.

Create will be able to execute smoothly.


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.