How to delete files from the HDFS?

后端 未结 6 894
滥情空心
滥情空心 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条回答
  •  执念已碎
    2021-02-18 13:38

    Durga Viswanath Gadiraju is right it is question of time, maybe my PC is slow, and also uses VM, after 10 minutes files are physically deleted, if you are using the algorythm that used by me in the question. Note set up the fs.trash.interval parameter = 1. Or by default files won't be deleted faster than 6 hours.

提交回复
热议问题