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 <
hadoop fs -put /hw1/* /hw1
You can use
hdfs dfs -rm -R /path/to/HDFS/file
since hadoop dfs has been deprecated.
hadoop dfs