What libraries are needed for mapreduce on HBase?

I have a very simple question! What libraries do I need for MapReduce on HBase? I know that I should use TableMapper, and I have hasoop-client 2.2.0 and hbase-client 0.98.2 from maven, but the API does not have TableMapper. Thank.

+4
source share
1 answer

In addition to the dependency, hbase-clientyou need the same version hbase-server, it will also include the mapreduce libraries you need. If you are using Maven, you need to add the file pom.xml:

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

(At the time of writing the latest version 1.1.2) Good luck!

+9
source

Source: https://habr.com/ru/post/1542805/


All Articles