add event-driven model in hadoop