简体   繁体   中英

Read from Avro and Write to multiple HBase in Mapper

I have used MultiTableOutputFormat and successfully written to Multiple HBase tables in TableReducer . But how to achieve that in Mapper only job?

I tried using TableMapper but it has only <KEYOUT,VALUEOUT> and not <KEYIN,VALUEIN,KEYOUT,VALUEOUT> . So I couldn't read in text files.

My Mapper is reading from Text/Avro file and processing it before pushing to HBase. Is that possible?

您可以打开HBase连接,并在实现的Mapper中自己编写PUT操作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM