You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by ch huang <ju...@gmail.com> on 2013/07/01 04:51:18 UTC

how can i do compaction manually?

i want clean the data that is deleted ,question is which command i can
execute on commandline?
thanks all!

Re: how can i do compaction manually?

Posted by Ted Yu <yu...@gmail.com>.
major_compact command can also compact selected region.

Take a look at the sample at the beginning of:
./src/main/ruby/shell/commands/major_compact.rb

Cheers

On Mon, Jul 1, 2013 at 10:55 AM, Viral Bajaria <vi...@gmail.com>wrote:

> You can use hbase shell and run major_compact 'tablename' or you could run
> echo "major_compact 'tablename' | hbase shell
>
> On Sun, Jun 30, 2013 at 7:51 PM, ch huang <ju...@gmail.com> wrote:
>
> > i want clean the data that is deleted ,question is which command i can
> > execute on commandline?
> > thanks all!
> >
>

Re: how can i do compaction manually?

Posted by Viral Bajaria <vi...@gmail.com>.
You can use hbase shell and run major_compact 'tablename' or you could run
echo "major_compact 'tablename' | hbase shell

On Sun, Jun 30, 2013 at 7:51 PM, ch huang <ju...@gmail.com> wrote:

> i want clean the data that is deleted ,question is which command i can
> execute on commandline?
> thanks all!
>