hbase as database in web application

让人想犯罪 __ 提交于 2020-01-04 03:15:14

问题


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?


回答1:


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.




回答2:


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/



来源:https://stackoverflow.com/questions/25479115/hbase-as-database-in-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!