private org.apache.hadoop.fs.FileSystem getHdfs(String uri) { this.ensureInitialized(); try { Configuration conf = new Configuration(true); return org.apache.hadoop.fs.FileSystem.get(new URI(uri), conf); } catch (IOException | URISyntaxException e) { throw new RheemException(String.format("Could not obtain an HDFS client for %s.", uri), e); } }