Got it

Offline Emergency Restoration Upon a Service Exception Caused by Metadata File Abnormalities

Created: Jul 25, 2019 07:05:25Latest reply: Jul 25, 2019 07:06:59 296 1 0 0 1
  Rewarded HiCoins: 0 (problem resolved)

Offline Emergency Restoration Upon a Service Exception Caused by Metadata File Abnormalities.

After an HBase cluster is powered off incorrectly and started, the cluster cannot be accessed.

View the RegionServer log /var/log/Bigdata/hbase/rs/hbase-omm-regionserver-*.log. The following message is displayed: java.io.IOException: Got error.

Perform the hdfs fsck check. It is found that the meta table file is damaged.

http://10.88.69.41:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784981.jpg

Featured Answers
tanglei
Created Jul 25, 2019 07:06:59

Hey there!

Fault handling

Rebuild the meta table using the HDFS data that maps to HBase in offline mode.

Solution

  • Stop the HBase service.

http://10.88.69.41:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784983.jpg

  • Run the following command to go to the client installation directory, for example, /opt/client:

cd /opt/client

  • Run the source bigdata_env command to configure environment variables.

  • If the cluster uses the security version, you must perform security authentication.

kinit hbase

  • Enter the correct password as prompted.

[root@10-10-10-11 client]# source bigdata_env  #Configure environment variables.  
[root@10-10-10-11 client]# kinit hbase         #Set kinit authentication.
  
Password for hbase@HADOOP.COM.

  • Run the ZooKeeper command to delete ZNode:

zkCli.sh -server zk_host:port/chroot

Example:

Offline Emergency Restoration Upon a Service Exception Caused by Metadata File Abnormalities-3012025-1
You cannot delete replication and hbaseid.

[root@10-10-10-11 client]# zkCli.sh -server 10.149.0.90:24002 #Enter  
Connecting to 10.149.0.90:24002
Welcome to ZooKeeper!
JLine support is enabled
[zk: 10.149.0.90:24002(CONNECTING) 0]
WATCHER::

WatchedEvent state:SyncConnected type:None path:null

WATCHER::

WatchedEvent state:SaslAuthenticated type:None path:null

[zk: 10.149.0.90:24002(CONNECTED) 0] ls /hbase
[acl, backup-masters, balancer, draining, flush-table-proc, hbaseid, master, meta-region-server, namespace, online-snapshot, recovering-regions, region-in-transition, replication, rs, running, splitWAL, table, table-lock, tokenauth]
[zk: 10.149.0.90:24002(CONNECTED) 1] deleteall /hbase/acl        #Delete

......
[zk: 10.149.0.90:24002(CONNECTED) 20] quit

  • Run the following HBase META tool offline repairing command:

hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair -fix

http://10.88.194.32:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784984.png

  • Start the HBase service.

http://10.88.194.32:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784986.jpg
View more
  • x
  • convention:

All Answers
Hey there!

Fault handling

Rebuild the meta table using the HDFS data that maps to HBase in offline mode.

Solution

  • Stop the HBase service.

http://10.88.69.41:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784983.jpg

  • Run the following command to go to the client installation directory, for example, /opt/client:

cd /opt/client

  • Run the source bigdata_env command to configure environment variables.

  • If the cluster uses the security version, you must perform security authentication.

kinit hbase

  • Enter the correct password as prompted.

[root@10-10-10-11 client]# source bigdata_env  #Configure environment variables.  
[root@10-10-10-11 client]# kinit hbase         #Set kinit authentication.
  
Password for hbase@HADOOP.COM.

  • Run the ZooKeeper command to delete ZNode:

zkCli.sh -server zk_host:port/chroot

Example:

Offline Emergency Restoration Upon a Service Exception Caused by Metadata File Abnormalities-3012025-1
You cannot delete replication and hbaseid.

[root@10-10-10-11 client]# zkCli.sh -server 10.149.0.90:24002 #Enter  
Connecting to 10.149.0.90:24002
Welcome to ZooKeeper!
JLine support is enabled
[zk: 10.149.0.90:24002(CONNECTING) 0]
WATCHER::

WatchedEvent state:SyncConnected type:None path:null

WATCHER::

WatchedEvent state:SaslAuthenticated type:None path:null

[zk: 10.149.0.90:24002(CONNECTED) 0] ls /hbase
[acl, backup-masters, balancer, draining, flush-table-proc, hbaseid, master, meta-region-server, namespace, online-snapshot, recovering-regions, region-in-transition, replication, rs, running, splitWAL, table, table-lock, tokenauth]
[zk: 10.149.0.90:24002(CONNECTED) 1] deleteall /hbase/acl        #Delete

......
[zk: 10.149.0.90:24002(CONNECTED) 20] quit

  • Run the following HBase META tool offline repairing command:

hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair -fix

http://10.88.194.32:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784984.png

  • Start the HBase service.

http://10.88.194.32:7088/idp-edit-service/editor/image/11108756775/A-1_1_en-us_image_0180784986.jpg
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.