Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hadoop Trash Folder Size

SOLVED Go to solution

Hadoop Trash Folder Size

New Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Hadoop Trash Folder Size

Expert Contributor

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

 

 

1 REPLY 1
Highlighted

Re: Hadoop Trash Folder Size

Expert Contributor

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