File localDir = new File(mr.getTaskTrackerLocalDir(i)); assertTrue("Local dir " + localDir + " does not exist.", localDir .isDirectory());
public Void run() throws IOException { verifyOutput(outDir.getFileSystem(conf), outDir); //TestJobHistory TestJobHistory.validateJobHistoryFileFormat( mrCluster.getJobTrackerRunner().getJobTracker().getJobHistory(), jobId, conf, "SUCCEEDED", false); TestJobHistory.validateJobHistoryFileContent(mrCluster, job, conf); // Since we keep setKeepTaskFilesPattern, these files should still be // present and will not be cleaned up. for(int i=0; i < numTT; ++i) { Path jobDirPath = new Path(mrCluster.getTaskTrackerLocalDir(i), TaskTracker .getJobCacheSubdir(TEST1_UGI.getUserName())); boolean b = FileSystem.getLocal(conf).delete(jobDirPath, true); assertTrue(b); } return null; } });