You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Qing Yan <qi...@gmail.com> on 2011/06/01 16:00:12 UTC
Re: data loss after killing RS
Hello Stack,
That parameter is for WAL right? I am trying to find a way to achieve
reliable persistency in HBase without the WAL slowness, but it looks like
impossible ..
On Tue, May 31, 2011 at 11:07 AM, Stack <st...@duboce.net> wrote:
> Have you looked at deferred flushing? Its an attribute you set on
> your table. You then say how often to run sync using
> 'hbase.regionserver.optionallogflushinterval'. Default is sync every
> second.
>
> St.Ack
>
> On Sat, May 28, 2011 at 6:47 AM, Qing Yan <qi...@gmail.com> wrote:
> > Well, I realized myself RS flush to HDFS is not designed to do
> incremental
> > changes. So there is no way around of WAL? man..just wish it can run a
> bit
> > faster:-P
> >
> > On Sat, May 28, 2011 at 9:36 PM, Qing Yan <qi...@gmail.com> wrote:
> >
> >> Ok, thanks for the explaination. so data loss is normal in this case.
> >> Yeah , I did a "kill -9". I did wait till the RS get reassigned and
> >> actually let process B keep retring over the night ..
> >>
> >> Is WAL the only way to guarantee data safety in hbase? We want high
> insert
> >> rate though.
> >> Is there a middle ground? e.g. a sync operation to flush RS to HDFS will
> be
> >> perfect!
> >>
> >>
> >>>
> >>
> >
>
Re: data loss after killing RS
Posted by Stack <st...@duboce.net>.
On Wed, Jun 1, 2011 at 7:00 AM, Qing Yan <qi...@gmail.com> wrote:
> Hello Stack,
>
> That parameter is for WAL right? I am trying to find a way to achieve
> reliable persistency in HBase without the WAL slowness, but it looks like
> impossible ..
>
You specify it when you set the schema for your table. Try it.
Yes, syncing each write is expensive. There is a grouping effect
going on in the dfsclient which makes it so we are not sync'ing each
write but it could be the case if for example your edits are large?
What size are they?
St.Ack