How to delete files from the HDFS?

后端 未结 6 915
滥情空心
滥情空心 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:46

    You can use

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

    since hadoop dfs has been deprecated.

提交回复
热议问题