Tony Hosseinzadeh
Tony Hosseinzadeh

Reputation: 67

hbase as database in web application

A big question about using hadoop or related technologies in a real web application.

I just want to find out how a web app can use hbase as its database. I mean is it the thing the big data apps do or they use normal databases and just use these sort of technologies for analysis?

Is it ok to have a online store with Hbase database or something like this?

Upvotes: 4

Views: 3582

Answers (2)

Adit
Adit

Reputation: 118

Yes it is perfectly fine to have hbase as your backend. What I am doing to get this done,( I have a online community and forum running on my website )

1.Writing C# code to access the Hbase using thrift, very easy and simple to get this done. (Thrift is a cross language binding platform, to HBase Java is only the first class citizen!)

2.Managing the HBase cluster(have it on Amazon) using the Amazon EMI

3.Using ganglia to monitor Hbase

Some Extra tips:

So you can organize the web application like this

  1. You can set up your webservers on Amazon Web Services or IBMWebSphere
  2. You can set up your own HBase cluster using cloudera or use AmazonEC2 again here.
  3. Communication between web server and Hbase master node happens via thrift client.
  4. You can generate thrift code in your own desired programming language Here are some links that helped me A)Thrift Client, B)Filtering options

Along with this I refer to HBase administrative cookbook by Yifeng Jiang and HBase reference guide by Lars George in case I dont get answers on web.

Filtering options provided by HBase are fast and accurate. Let's say if you use HBase for storing your product details, you can have sub-stores and have a column in your Product table, which tells to which store a product may belong and use Filters to get products for a specific store.

Upvotes: 2

tinychen
tinychen

Reputation: 36

I think you should read the article below:

"Apache HBase Do’s and Don’ts"

http://blog.cloudera.com/blog/2011/04/hbase-dos-and-donts/

Upvotes: 0

Related Questions