Преглед изворни кода

HADOOP-905. Remove some dead code from JobClient.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@497583 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting пре 18 година
родитељ
комит
3b18854ca1
2 измењених фајлова са 3 додато и 11 уклоњено
  1. 2 0
      CHANGES.txt
  2. 1 11
      src/java/org/apache/hadoop/mapred/JobClient.java

+ 2 - 0
CHANGES.txt

@@ -39,6 +39,8 @@ Trunk (unreleased changes)
 11. HADOOP-899.  Update libhdfs for changes in HADOOP-871.
     (Sameer Paranjpye via cutting)
 
+12. HADOOP-905.  Remove some dead code from JobClient.  (cutting)
+
 
 Release 0.10.1 - 2007-01-10
 

+ 1 - 11
src/java/org/apache/hadoop/mapred/JobClient.java

@@ -311,17 +311,7 @@ public class JobClient extends ToolBase implements MRConstants  {
           job.setWorkingDirectory(fs.getWorkingDirectory());          
         }
 
-        FileSystem userFileSys = FileSystem.get(job);
-        Path[] inputDirs = job.getInputPaths();
- 
-        // make sure directories are fully qualified before checking them
-        for(int i=0; i < inputDirs.length; ++i) {
-          if (inputDirs[i].toUri().getScheme() == null) {
-            inputDirs[i] = userFileSys.makeQualified(inputDirs[i]);
-          }
-        }
-
-        // input paths should exist. 
+        // Check the input specification 
         job.getInputFormat().validateInput(job);
 
         // Check the output specification