Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.15.3
-
None
-
None
-
Reviewed
Description
In TaskTracker::localizeJob:
// Get sizes of JobFile and JarFile // sizes are -1 if they are not present. FileSystem fileSystem = FileSystem.get(fConf); FileStatus status[] = fileSystem.listStatus(new Path(jobFile).getParent()); long jarFileSize = -1; long jobFileSize = -1; for(FileStatus stat : status) { if (stat.getPath().toString().contains("job.xml")) { jobFileSize = stat.getLen(); } else { jobFileSize = -1; } if (stat.getPath().toString().contains("job.jar")) { jarFileSize = stat.getLen(); } else { jarFileSize = -1; } }
One or both of jobFileSize and jarFileSize will be -1.