Properties props = new Properties();
String fsUri = System.getProperty("fsUri");
props.setProperty("fs.defaultFS", fsUri == null ? "hdfs://localhost:8020" : fsUri);
cfb.setProperties(props);
cfb.setRegisterUrlHandler(false);
cfb.afterPropertiesSet();
this.configuration = cfb.getObject();
FileSystem fs = FileSystem.get(this.configuration);
fs.exists(new Path("/"));
this.resource = fs;
}