Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Hadoop Trash Folder Size

avatar
New Member

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

avatar
Master Collaborator

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

1 REPLY 1

avatar
Master Collaborator

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