-Re: hbase as a primary store, or is it more for "2nd class" data?
I'll second what Ian and Andrew have highlighted. HBase is very capable of being used as a primary store as long as you run it following the best practices. It's a useful exercise to clearly define the failure scenarios you want to safeguard against and what kind of SLAs you have in terms of recovering from those. That will help you evaluate whether HBase has the features and stability required to fulfill your requirements. It's hard to make a general statement about whether HBase makes sense as a primary store or not. In many cases it does and and in many cases it does not, and the decision depends on what your requirements are.
Hope that helps.
On Monday, May 14, 2012 at 7:48 AM, Ian Varley wrote:
> Generally speaking, the intent of HBase IS to be a first class data store. It's a young data store (not even 1.0) so you have to take that into account; but there's been a lot of engineering put into making it fully safe, and known data safety issues are considered release blockers. (This is assuming you run with a WAL enabled, have at least 3 replicas in HDFS, etc -- follow good data safety practices.)
> The data loss scenarios I've heard of are mostly of the "byzantine" variety. For example, if you have an entire data center power outage, you may lose a few seconds of data that had been synced in the WAL but not fsynced (i.e. flushed by the OS to magnetic media). There are also various known bugs involving multiple failure scenarios where it could lose data (for example, if you have multiple successive node failures during replication). To my knowledge, there are no known "simple" cases where HBase will lose data.
> For that matter, relational DBs can lose data too (I've seen it happen, recently, because of a HW failure). So ultimately, it comes down to how valuable the data is to you, and how many redundant measures you're willing to take to prevent increasingly rare situations. You accounting for earthquakes? Solar flares? :)
> On May 13, 2012, at 11:21 PM, Srikanth P. Shreenivas wrote:
> > There is a possibility that you may lose data, and hence, I would not use it for first class data if data cannot be re-created.
> > If you can derive data from secondary source and store data in HBase for performance gains, then, it is a viable use case.
> > Regards,
> > Srikanth
> > -----Original Message-----
> > From: S Ahmed [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 14, 2012 7:52 AM
> > To: [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED]); Otis Gospodnetic
> > Subject: Re: hbase as a primary store, or is it more for "2nd class" data?
> > Otis,
> > It kind of goes back to what I was saying earlier, if FB is using it for searching your inbox, or storing your chat messages or wall posts, I don't really think that is important (and really it isn't hehe)
> > I was just making an observation and wanted to get a feel for what others think. Obviously ever tool has its purpose and domain, and I was curious as to what others have seen in production usage etc.
> > (I do realize some use cases the data is very important like analytic data that usually correlates to advertising $$ etc.)
> > On Sun, May 13, 2012 at 10:00 PM, Otis Gospodnetic < [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote:
> > > Hi Ahmed,
> > >
> > > At Sematext we have a few SaaS products that use HBase as the primary
> > > data store. I hear Facebook uses HBase for some important stuff, too.
> > > ;) So far we've survived. HBase does have rough edges, but also good
> > > developers who are making it better every day.
> > >
> > > Otis
> > > ----
> > > Performance Monitoring for Solr / ElasticSearch / HBase -
> > > http://sematext.com/spm
> > >
> > >
> > >
> > > > ________________________________
> > > > From: S Ahmed <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])>
> > > > To: [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])
> > > > Sent: Sunday, May 13, 2012 8:14 PM