Created on 07-22-2014 10:06 AM - edited 09-16-2022 02:03 AM
What is the most efficient way to determine the size of Trash in a cluster periodically? It seems like this is not available through the Hadoop metrics.
Created 07-22-2014 12:34 PM
You are right, I don't see this in hadoop metrics or in jmx stats in the active namenode on my clusters either.
here is a way to get what you are after in hdfs commands:
hdfs dfs -du /user/*/.Trash
View solution in original post