String [] dirs = jobConf.getLocalDirs();
/** * Initialize MRAsyncDiskService based on conf. * @param conf local file system and local dirs will be read from conf */ public MRAsyncDiskService(JobConf conf) throws IOException { this(FileSystem.getLocal(conf), conf.getLocalDirs()); }
Path[] getLocalFiles(JobConf conf, String subdir) throws IOException{ String[] localDirs = conf.getLocalDirs(); Path[] paths = new Path[localDirs.length]; FileSystem localFs = FileSystem.getLocal(conf); for (int i = 0; i < localDirs.length; i++) { paths[i] = new Path(localDirs[i], subdir); paths[i] = paths[i].makeQualified(localFs); } return paths; }
private Path[] getLocalFiles(JobConf conf, String subdir) throws IOException{ String[] localDirs = conf.getLocalDirs(); Path[] paths = new Path[localDirs.length]; FileSystem localFs = FileSystem.getLocal(conf); for (int i = 0; i < localDirs.length; i++) { paths[i] = new Path(localDirs[i], subdir); paths[i] = paths[i].makeQualified(localFs); } return paths; }
Path[] getLocalDirs() throws IOException{ String[] localDirs = fConf.getLocalDirs(); Path[] paths = new Path[localDirs.length]; FileSystem localFs = FileSystem.getLocal(fConf); for (int i = 0; i < localDirs.length; i++) { paths[i] = new Path(localDirs[i]); paths[i] = paths[i].makeQualified(localFs); } return paths; }
Path[] getLocalFiles(JobConf conf, String subdir) throws IOException{ String[] localDirs = conf.getLocalDirs(); Path[] paths = new Path[localDirs.length]; FileSystem localFs = FileSystem.getLocal(conf); boolean subdirNeeded = (subdir != null) && (subdir.length() > 0); for (int i = 0; i < localDirs.length; i++) { paths[i] = (subdirNeeded) ? new Path(localDirs[i], subdir) : new Path(localDirs[i]); paths[i] = paths[i].makeQualified(localFs); } return paths; }
/** * Use MRAsyncDiskService.moveAndDeleteAllVolumes instead. */ @Deprecated public void deleteLocalFiles() throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i]), true); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir), true); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir)); } }
/** * Use MRAsyncDiskService.moveAndDeleteAllVolumes instead. */ @Deprecated public void deleteLocalFiles() throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i]), true); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir), true); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir)); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir), true); } }
/** * Use MRAsyncDiskService.moveAndDeleteAllVolumes instead. */ @Deprecated public void deleteLocalFiles() throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i]), true); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir), true); } }
/** * Use MRAsyncDiskService.moveAndDeleteAllVolumes instead. */ @Deprecated public void deleteLocalFiles() throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i]), true); } }
/** * Use MRAsyncDiskService.moveAndDeleteAllVolumes instead. * @see org.apache.hadoop.util.MRAsyncDiskService#cleanupAllVolumes() */ @Deprecated public void deleteLocalFiles() throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i])); } }
/** * Use MRAsyncDiskService.moveAndDeleteAllVolumes instead. * @see org.apache.hadoop.mapreduce.util.MRAsyncDiskService#cleanupAllVolumes() */ @Deprecated public void deleteLocalFiles() throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i]), true); } }
public void deleteLocalFiles(String subdir) throws IOException { String[] localDirs = getLocalDirs(); for (int i = 0; i < localDirs.length; i++) { FileSystem.getLocal(this).delete(new Path(localDirs[i], subdir), true); } }
/** * Initialize MRAsyncDiskService based on conf. * @param conf local file system and local dirs will be read from conf */ public MRAsyncDiskService(JobConf conf) throws IOException { this(FileSystem.getLocal(conf), conf.getLocalDirs()); }