What does hadoop fs -du command gives as output

+1 vote

I want to see the size of the file stored in my HDFS. I executed hadoop fs -du -h and got the following output:

image

In linux du is for getting the size of file, but here I am getting 2 value. Can anyone help me in understanding what these 2 values indicate?

Apr 27, 2018 in Big Data Hadoop by coldcode
• 2,090 points
5,897 views

2 answers to this question.

+1 vote
The first value is the size of the lineitem.xml file, whereas we know that HDFS stores the replicas of a file. So, the second value tells the total size of the file in HDFS including its replicas.
answered Apr 27, 2018 by Shubham
• 13,490 points
+2 votes
du command is used for to see absolute path in hdfs of any file which is present in hdfs file system
answered Jul 24, 2019 by Lokesh Singh

Hi @Lokesh. If du command is used to see the absolute path, what is the size output shown in the screenshot. Can you please help?

Related Questions In Big Data Hadoop

0 votes
1 answer

What does count command in Hadoop tells?

The output of the count command are: ...READ MORE

answered Apr 23, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
1,805 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,060 views
0 votes
1 answer

What does Context mean in Hadoop MapR terms ?

The new API makes extensive use of ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
1,602 views
0 votes
2 answers

Hadoop fs -stat command

hadoop fs -stat is as hadoop command used ...READ MORE

answered Oct 25, 2018 in Big Data Hadoop by Omkar
• 69,220 points
11,377 views
0 votes
1 answer

How can I write text in HDFS using CMD?

Hadoop put & appendToFile only reads standard ...READ MORE

answered Apr 27, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,332 views
0 votes
1 answer

What is the command to find the free space in HDFS?

You can use dfsadmin which runs a ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,229 views
0 votes
1 answer

How to find the used cache in HDFS

hdfs dfsadmin -report This command tells fs ...READ MORE

answered May 4, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,498 views
0 votes
1 answer

Where does HDFS stores data on the local file system?

First find the Hadoop directory present in ...READ MORE

answered May 8, 2018 in Big Data Hadoop by Shubham
• 13,490 points
16,699 views
0 votes
11 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP