Check HDFS folder size in Shell / Hadoop
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
info Last modified by Raymond 5 years ago
copyright
This page is subject to Site terms.
comment Comments
No comments yet.
Log in with external accounts
warning Please login first to view stats information.
article
Install Hadoop 3.0.0 on Windows (Single Node)
article
Get Started with Apache Kylin - OLAP for Big Data
article
Install Hadoop 3.3.1 on Windows 10 Step by Step Guide
article
Default Ports Used by Hadoop Services (HDFS, MapReduce, YARN)
article
Configure Hadoop 3.1.0 in a Multi Node Cluster
Read more (52)