HBase forcibly deletes a table

Source: Internet
Author: User

Scenario:

Because "SNAPPY" is not installed in hbase in the Intranet test environment

Alter 'trojaninfo', {NAME => 'I', COMPRESSION => 'snappy '}

Force Delete table:

1. Force delete all files of the table on hdfs (The Path depends on the actual situation ):

./Hadoop fs-rmr/hbase/TrojanInfo

2. Delete the record of the table in HBase system table. META:

A. First, query the rowkey of the table TrojanInfo in. META. From. META., you can use scan '. META.' And then manually filter it;

B. Delete the three fields under the rowkey (assume that the queried rowkey is TrojanInfo, and 1361433390076.2636b5a2b3d08f23d2af9582f29bd8 .)

Delete 'trojaninfo', 'trojaninfo, 1361433390076.2636b5a2b3d08f23d2af9582f29bd8. ', 'info: Server'

Delete 'trojaninfo', 'trojaninfo, 1361433390076.2636b5a2b3d08f23d2af9582f29bd8. ', 'info: serverstartcode'

Delete 'trojaninfo', 'trojaninfo, 1361433390076.2636b5a2b3d08f23d2af9582f29bd8. ', 'info: regioninfo'

C. Restart hbase to delete the table TrojanInfo.

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.