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,040 points
1,178 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,350 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 23 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,280 points
187 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
18,113 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
• 10,760 points
148 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
• 68,180 points
1,833 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,350 points
106 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,350 points
264 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,350 points
297 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,350 points
2,188 views
0 votes
11 answers