1. 程式人生 > >HBase和MapReduce

HBase和MapReduce

HBase集成了MapReduce框架,對錶中大量的資料進行並行處理

HBaseMapReduce每個階段提供了相應的類用來處理表資料

InputFormat類:

  HBase實現了TableInputFormatBase類,該類提供了對錶資料的大部分操作

其子類TableInputFormat則提供了完整的實現,用於處理表資料並聲稱鍵值對

Mapper類和Reducer類:

  HBase實現了TableMapper類和TableReducer

OutputFormat類:

  HBase實現了TableOutputFormat將輸出的 <key,value> 對寫到指定的

HBase表中