// ignore
}
}
public static Resource mkdir(Configuration cfg, String dir) {
HdfsResourceLoader loader = new HdfsResourceLoader(cfg);
try {
Resource resource = loader.getResource(dir);
FileSystem fs = ((HdfsResourceLoader) loader).getFileSystem();
fs.mkdirs(new Path(resource.getURI()));
return loader.getResource(dir);
} catch (IOException ex) {
try {
loader.close();
} catch (IOException ioe) {
}
throw new IllegalArgumentException(ex);
}