Fixed up errors in hadoop runner, and attempted to reduce memory footprint.