简体   繁体   中英

Mapper task completion event

We have a map reduce task set up on HBase. I have a requirement that I need to know once a mapper instantiated by the framework completes its task.

Is there any event that I have to look upon? Thanks.

You can dump that data inside the cleanup() method. cleanup() gets called for the mappers once they are done with everything so it should serve the purpose, IMHO.

To add to Tariq's answer, you can actually override the setup() and cleanup() methods from the Mapper class. So, for each map task, the cleanup() method gets called once at the end. Please, do your final processing there.

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