publicstaticvoidcreateNewFile(Stringpath,Stringcontent,FileSystemfs)throwsException{Configurationconf=newConfiguration();conf.set("dfs.support.append","true");Pathd_path=newPath(path);FSDataOutputStreamos=null;if(fs.exists(d_path)){try{os=fs.append...
查看全文