introduce heartbeat to communicate with Hadoop

introduce heartbeat to prevent Hadoop from killing long running tasks
fixes #135