How to delete files from the HDFS?

后端 未结 6 925
滥情空心
滥情空心 2021-02-18 13:11

I just downloaded Hortonworks sandbox VM, inside it there are Hadoop with the version 2.7.1. I adding some files by using the

hadoop fs -put /hw1/* /hw1
<         


        
6条回答
  •  猫巷女王i
    2021-02-18 13:44

    If you also need to skip trash following command works for me

    hdfs dfs -rm -R -skipTrash /path/to/HDFS/file
    

提交回复
热议问题