HDFS DFS DU
In Hadoop Distributed File System (HDFS), the dfs -du
command is used to calculate the disk space used by files and directories within the HDFS file system. The command provides information about the size of individual files, directories, and the total size occupied by files and directories in HDFS.
Here’s how you can use the hadoop dfs -du
command:
hadoop fs -du [-s] <path>
-s
(optional): When you use the-s
option, the command displays the summary total size of the specified path and its subdirectories, rather than showing the size of individual files and directories.<path>
: This is the HDFS path for which you want to calculate the disk usage.
Here are a few examples of how you can use the hadoop dfs -du
command:
- Calculate the disk usage of a specific file:
hadoop fs -du /user/hadoop/input/myfile.txt
- Calculate the disk usage of a directory and its subdirectories:
hadoop fs -du -s /user/hadoop/data/
Hadoop Training Demo Day 1 Video:
Conclusion:
Unogeeks is the No.1 IT Training Institute for Hadoop Training. Anyone Disagree? Please drop in a comment
You can check out our other latest blogs on Hadoop Training here – Hadoop Blogs
Please check out our Best In Class Hadoop Training Details here – Hadoop Training
Follow & Connect with us:
———————————-
For Training inquiries:
Call/Whatsapp: +91 73960 33555
Mail us at: info@unogeeks.com
Our Website ➜ https://unogeeks.com
Follow us:
Instagram: https://www.instagram.com/unogeeks
Facebook:https://www.facebook.com/UnogeeksSoftwareTrainingInstitute
Twitter: https://twitter.com/unogeeks