* @throws IOException
*/
void removeJobFiles(String user, JobID jobId) throws IOException {
String userDir = getUserDir(user);
String jobDir = getLocalJobDir(user, jobId.toString());
PathDeletionContext jobCleanup =
new TaskController.DeletionContext(getTaskController(), false, user,
jobDir.substring(userDir.length()));
directoryCleanupThread.addToQueue(jobCleanup);
for (String str : localStorage.getDirs()) {
Path ttPrivateJobDir = FileSystem.getLocal(fConf).makeQualified(
new Path(str, TaskTracker.getPrivateDirForJob(user, jobId.toString())));
PathDeletionContext ttPrivateJobCleanup =
new CleanupQueue.PathDeletionContext(ttPrivateJobDir, fConf);
directoryCleanupThread.addToQueue(ttPrivateJobCleanup);
}
}