stuff for testing mapreduce locally on Java