hbase作为Web应用程序中的数据库 [英] hbase as database in web application

查看:375
本文介绍了hbase作为Web应用程序中的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我只想知道一个web应用程序如何使用hbase作为其数据库。我的意思是这是大数据应用程序做的事情,还是他们使用普通的数据库,只是使用这些技术进行分析?



可以在网上商店Hbase数据库或类似的东西?

解决方案

是的,将hbase作为后端是完全正确的。
我正在做什么来完成这个任务(我在我的网站上有一个在线社区和论坛)
$ b $ 1.使用C#代码来访问Hbase使用节俭,非常容易和简单地完成这项工作。 (Thrift是一个跨语言绑定平台,对于HBase Java来说只是第一类公民!) b
$ b 2.使用Amazon管理HBase集群EMI

3.使用神经监视Hbase

一些额外提示:

因此,您可以像这样组织Web应用程序


  1. 您可以在Amazon Web Services或IBMWebSphere上设置Web服务器

  2. 您可以使用cloudera设置您自己的HBase群集,或者在此处再次使用AmazonEC2。
  3. Web服务器和Hbase主节点之间的通信通过thrift客户端。

  4. 您可以使用自己想要的编程语言生成节俭代码
    以下是一些链接帮助我
    A)节俭客户
    B)过滤选项

除此之外,我参考了由Yifeng Jiang撰写的HBase管理手册和Lars George的HBase参考指南,以便我在网上找不到答案。



< HBase提供的过滤选项快速而准确。比方说,如果您使用HBase存储产品详细信息,则可以使用子商店并在产品表中包含一列,告诉产品可能属于哪个商店,并使用过滤器为特定商店获取产品。


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?

解决方案

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.

这篇关于hbase作为Web应用程序中的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆