hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Talat Uyarer <ta...@uyarer.com>
Subject Re: How to delete regions from a table
Date Mon, 11 May 2015 07:30:32 GMT
Hi Gaurav,

When you disable your table, it does not accept any connection.
1. Disable table
2. delete your meta row
3. move/delete the data folders at hdfs://.../user/hbase/<table>/<regionId>
4. run hbck
5. enable your table.

- If you follow this instruction, hbck fix your holes.


2015-05-11 8:43 GMT+03:00 Gaurav Agarwal <gaurav@arkin.net>:
> Hi Talat,
> Thanks for the reply! Few specific followup questions:
> 1. Do I need to disable and enable table for these operations? what would be
> exact sequence?
> 2. I guess somewhere in between these steps, I need to manually delete the
> real data files corresponding to these regions, from hdfs?
> 3. What would hbck -repair do in this case? Would it recreate the deleted
> regions in meta or would the rowkey space of existing regions be expanded to
> fill the holes?
> --cheers, gaurav
> --
> View this message in context: http://apache-hbase.679495.n3.nabble.com/How-to-delete-regions-from-a-table-tp4071226p4071237.html
> Sent from the HBase User mailing list archive at Nabble.com.

Websitesi: http://talat.uyarer.com
Twitter: http://twitter.com/talatuyarer
Linkedin: http://tr.linkedin.com/pub/talat-uyarer/10/142/304

View raw message