0 votes
in HDFS by
How will you empty the trash in HDFS?

1 Answer

0 votes
by

Just like many desktop operating systems handle deleted files without a key, HDFS also moves all the deleted files into trash folder stored at /user/hdfs/.Trash. The trash can be emptied by running the following command-

hdfs –dfs expunge

Related questions

0 votes
asked Jun 22, 2023 in HDFS by rajeshsharma
+1 vote
asked Jul 28, 2021 in HDFS by SakshiSharma
+1 vote
+2 votes
asked Dec 20, 2022 in Hadoop by john ganales
...