从 hadoop mapreduce 访问 hbase 表

发布于 2025-01-07 13:01:09 字数 434 浏览 1 评论 0原文

我想从 hadoop mapreduce 访问 hbase 表,我使用的是 windowsXP、cygwin、hadoop-0.20.2 和 hbase-0.92.0。 我能够在 3 台电脑上成功运行 mapreduce wordcount,并验证 hadoop 和 hbase 工作正常。我还可以从 shell 创建表。

我尝试了很多例子,但它们不起作用,例如当我尝试使用 javac Example.java

它给出错误...... org.apache.hadoop.hbase.client 不存在 org.apache.hadoop.hbase 不存在 org.apache.hadoop.hbase.io 不存在

请任何人都可以帮助我...... -plz 给我一些示例代码来从 hadoop map reduce 访问 hbase -还指导我应该如何编译和执行它?

I want to access hbase table from hadoop mapreduce and I'm using windowsXP, cygwin, hadoop-0.20.2 and hbase-0.92.0.
I am able to run mapreduce wordcount successfully on 3 pcs and have verfied that hadoop and hbase are working fine. I can also create table from shell.

I have tried many examples but they are not working, for example when I try to compile it using
javac Example.java

it gives error.....
org.apache.hadoop.hbase.client does not exist
org.apache.hadoop.hbase does not exist
org.apache.hadoop.hbase.io does not exist

please can anyone help me in this......
-plz give me some example code to access hbase from hadoop map reduce
-also guide me how should I compile and execute it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独享拥抱 2025-01-14 13:01:09

该网站有示例 hbase/Mapreduce 代码。我没有尝试过,但乍一看似乎还不错。另外您使用的是哪个 Hadoop/HBase 发行版?阿帕奇?克劳德拉?

http://kdpeterson.net/blog/2009/09/minimal -hbase-mapreduce-example.html

This website has example hbase/Mapreduce code. I haven't tried it, but it looks OK at first glance. Also what distribution of Hadoop/HBase are you using? Apache? Cloudera?

http://kdpeterson.net/blog/2009/09/minimal-hbase-mapreduce-example.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文