How to check a HDFS directory size?

Big Data Hadoop

Hi Guys,

I am new to Hadoop. I have created some directories in the cluster. I want to check the size of the directory. how can I do that?

1
Answers

Replies

The size of the HDFS directory can be found using a single command. Hadoop includes the command within the file system that is represented below.


$ hadoop fs -du -s -h /path/to/dir

 
 

If you want to unleash your potential in this competitive field, please visit the Big Data Hadoop course page for more information, where you can find the Big Data Hadoop tutorials and Big Data Hadoop frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
Protected by Astra Security