In the HBase shell, the command is 'assign' that executes this. Takes a second 
param 'true' for the force part. Lookup its help message in shell, that'd be 
enough I think.

On 07-Aug-2011, at 11:11 AM, Geoff Hendrey wrote:

> I'd like to try it, but looks like I need to learn Ruby first? 
> 
> Sent from my iPad
> 
> On Aug 6, 2011, at 12:42 PM, "Ted Yu" <[email protected]> wrote:
> 
>> Have you tried calling assign on this region ?
>>   # Assign a region
>>   def assign(region_name, force)
>>     @admin.assign(region_name.to_java_bytes,
>> java.lang.Boolean::valueOf(force))
>>   end
>> 
>> Cheers
>> 
>> On Sat, Aug 6, 2011 at 12:12 PM, Geoff Hendrey <[email protected]> wrote:
>> 
>>> Hey -
>>> 
>>> 
>>> 
>>> I've got a corrupt HDFS block in a region server's ".logs" directory.
>>> Also, "hbase hbck" reports 5 inconsistencies.
>>> 
>>> 
>>> 
>>> .META. shows a region as offline, and it won't come online. What are my
>>> options. "hbck -fix" didn't do anything. It's not "live" data and I
>>> don't mind losing it. However, if I delete the corrupt HDFS .logs files,
>>> would it screw up HBase? I don't care if I lose some writes from the
>>> log. I just don't want to totally bork hbase.
>>> 
>>> 
>>> 
>>> -geoff
>>> 
>>> 

Reply via email to