On Wed, May 11, 2011 at 6:14 AM, Ophir Cohen <[email protected]> wrote:
> My results from today's researches:
>
> I tried to delete region as Stack suggested:
>
>   1. *close_region*
>   2. Remove files from file system.
>   3. *assign* the region again.
>

Try inserting something into that region and then getting it back out.
 Flush it explicitly . See that a file is added to hdfs.  Again get
the result back out.  That'll tell you for sure if it works.

>   1. Can I split a region by a specific key? It looks that it split
>   automatically.

You can pass a key in the UI and in shell.  If the key exists, I
believe it will split on the passed key (You should confirm).  If the
key does not exist, it'll split on the closest.


>   2. It seems that splitting from command line does not work... I get the
>   message in the log but nothing really happened. Actually in the code it
>   stated that it triggered compaction and that should be enough (????).


This sounds like a bug.  The UI uses same code path so bug is probably
in it too.    We might have to do some fixing herein.  Want to try
tracing where it goes awry?


>   3. Is there a way to choose my method of region splitting? I think it can
>   be a great option - way to state when and how region is splitted...
>

No.  Its the size of the biggest store file that determines when we
split.  Its not currently pluggable.  But its a good idea (File an
issue?).  I'm not sure if coprocessors have influence over when a
split runs.

FYI, split check happens after compaction check.  That might be why
you see the compaction message in the above though you invoked a
split.

St.Ack

Reply via email to