Description
This can be done by setting the following properties, then calling ToolRunner.run.
conf.set("mapred.job.tracker", "local");
conf.set("fs.default.name", "file:///");
If it doesn't take too much longer to run this way in a junit test, it would be preferable to the manual context creation that is currently being done.