Check HDFS folder size in Shell / Hadoop

Raymond Raymond visibility 2,007 event 2019-11-18 access_time 5 years ago language English
more_vert

Hadoop provides a number of CLIs that can be used to perform many tasks/activities. This code snippet shows you how to check file/folder size in HDFS.

hdfs dfs command can be used to check disk usage in HDFS.

Syntax:

hdfs dfs -du -h ${hdfs_path}

Code snippet

hdfs dfs -du -h /path/to/your/folder
More from Kontext
info Last modified by Raymond 5 years ago copyright This page is subject to Site terms.
Like this article?
Share on
comment Comments
No comments yet.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts