Check HDFS folder size in Shell / Hadoop

visibility 1,077 access_time 3 years ago languageEnglish

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.


hdfs dfs -du -h ${hdfs_path}

Code snippet

hdfs dfs -du -h /path/to/your/folder
info Last modified by Raymond 3 years ago copyright This page is subject to Site terms.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

timeline Stats
Page index 1.03
More from Kontext
Load File into HDFS through WebHDFS APIs
visibility 2,346
thumb_up 1
access_time 2 years ago
Create Partitioned Hive Table
visibility 55
thumb_up 0
access_time 5 months ago