You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Jeff Zhang <zj...@gmail.com> on 2009/11/25 07:11:03 UTC
How to flush memstore to filestore ?
Hi all,
Today, I do some put operation on hbase , and then I shutdown hbase, when I
restart it again, find that all the data I put in just now is lost.
I guess because hbase first write the data in memstore rather than
filestore, so how can I flush memstore to filestore ? Is there any command
for this purpose ?
Thank you
Jeff Zhang
Re: How to flush memstore to filestore ?
Posted by Andrew Purtell <ap...@apache.org>.
Forgive what might be a dumb question, but did you change your HBase rootdir to something other than the default (which is in /tmp)?
In the HBase shell there is a command 'flush' which will force persistence of anything in memstore, but this should not be needed in normal operation unless you disabled writes to WAL with Put.writeToWAL(false).
flush Flush all regions in passed table or pass a region row to
flush an individual region. For example:
hbase> flush 'TABLENAME'
hbase> flush 'REGIONNAME'
Best regards,
- Andy
________________________________
From: Jeff Zhang <zj...@gmail.com>
To: hbase-user@hadoop.apache.org
Sent: Tue, November 24, 2009 10:11:03 PM
Subject: How to flush memstore to filestore ?
Hi all,
Today, I do some put operation on hbase , and then I shutdown hbase, when I
restart it again, find that all the data I put in just now is lost.
I guess because hbase first write the data in memstore rather than
filestore, so how can I flush memstore to filestore ? Is there any command
for this purpose ?
Thank you
Jeff Zhang