Hadoop compat

Implemented issue #382.

There is an org.apache package which was needed to extend Task class of hadoop which has package visibility. Any suggestions to solve this?