Issue 331 hadoop performance

See #331.

Tweak some settings (number of mapper/reducer tasks), get rid of some deprecated usage, and some more smaller improvements.