java API操做hdfs刪除文件或文件夾

須要注意的: FileSystem.delete(Path f)方法以及過期不用了,建議使用FileSystem.delete(Path f, boolean recursive) 。 recursive爲是否遞歸刪除。java package hadoop.hdfs; import java.io.FileInputStream; import java.io.FileOutputStream
相關文章
相關標籤/搜索