Hbase-1.1.x 版本中的地图缩减

Map reduce in Hbase-1.1.x versions

根据 http://hbase.apache.org/book.html#mapreduce.example 中的示例,我需要使用 TableMapReduceUtil 来启动 HBase 上的 map reduce,并且我的 Mapper 将扩展 TableMapper。但是,我在 Hbase 1.1.2 或 1.1.1 中找不到那些 类。

在这些版本中,我需要有关如何通过 HBase 执行映射缩减作业的帮助。

我正在下载 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

你还需要 hbase-server 依赖:

<dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase-server</artifactId>
    <version>1.1.2</version>
</dependency>