【发布时间】:2015-10-02 11:32:13
【问题描述】:
根据http://hbase.apache.org/book.html#mapreduce.example 中的示例,我需要使用TableMapReduceUtil 在HBase 上启动map reduce,并且我的Mapper 将扩展TableMapper。但是,我在 Hbase 1.1.2 或 1.1.1 中找不到这些类。
在这些版本中,我需要有关如何通过 HBase 执行 map reduce 工作的帮助。
我将 HBase 依赖项下载为 pom 而不是 jar。因为,jar 无法正常工作并抛出 maven 找不到该 repo 的错误。
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>1.1.2</version>
<type>pom</type>
</dependency>
PS:当我尝试在 IntelliJ 中自动导入时,它确实有效,但我必须导入我不想使用的 0.94.x 版本。因为,我使用的hbase-client是1.1.2,和0.94.x不兼容
【问题讨论】:
标签: java hadoop intellij-idea mapreduce hbase