从 hadoop mapreduce 访问 hbase 表
我想从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该网站有示例 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