public void testLocalModeSink() throws Exception { Tap source = new Hfs(new TextLine(), "input/path"); Tap sink = new Lfs(new TextLine(), "output/path", true); Pipe pipe = new Pipe("test"); Map<Object, Object> props = getProperties(); Flow flow = new FlowConnector(props).connect(source, sink, pipe); List<FlowStep> steps = flow.getSteps(); assertEquals("wrong size", 1, steps.size()); FlowStep step = (FlowStep) steps.get(0); String tracker = step.getJobConf(MultiMapReducePlanner.getJobConf(props)).get("mapred.job.tracker"); boolean isLocal = tracker.equalsIgnoreCase("local"); assertTrue("is not local", isLocal); }