1
0
Kaynağa Gözat

Remove .crc files too.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@392442 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 yıl önce
ebeveyn
işleme
fc398d35b4

+ 3 - 2
src/java/org/apache/hadoop/mapred/JobInProgress.java

@@ -471,12 +471,13 @@ class JobInProgress {
     synchronized void garbageCollect() {
     synchronized void garbageCollect() {
       try {
       try {
         // Definitely remove the local-disk copy of the job file
         // Definitely remove the local-disk copy of the job file
+        FileSystem localFs = FileSystem.getNamed("local", conf);
         if (localJobFile != null) {
         if (localJobFile != null) {
-            localJobFile.delete();
+            localFs.delete(localJobFile);
             localJobFile = null;
             localJobFile = null;
         }
         }
         if (localJarFile != null) {
         if (localJarFile != null) {
-            localJarFile.delete();
+            localFs.delete(localJarFile);
             localJarFile = null;
             localJarFile = null;
         }
         }