Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

rm vs rm -r in hadoop

Yogeshwar Sharma

Active Member
Folks need your views :

What is the difference between commands :

hadoop fs -rm -r <file_name> and hadoop fs -rm <file_name> assuming we have a file to delete from HDFS. I assume both commands will remove replicated copies of the file as well.

Thanks
Yogeshwar
 
Top