HBase和MapReduce

来源:互联网 发布:ant for mac 下载 编辑:程序博客网 时间:2024/05/19 02:20

HBase集成了MapReduce框架,对表中大量的数据进行并行处理

HBaseMapReduce每个阶段提供了相应的类用来处理表数据

 

InputFormat类:

  HBase实现了TableInputFormatBase类,该类提供了对表数据的大部分操作

  其子类TableInputFormat则提供了完整的实现,用于处理表数据并声称键值对

 

Mapper类和Reducer类:

  HBase实现了TableMapper类和TableReducer

 

OutputFormat类:

  HBase实现了TableOutputFormat将输出的 <key,value>对写到指定的HBase表中

0 0