hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tao Xiao <xiaotao.cs....@gmail.com>
Subject A non-empty file's size is reported as 0
Date Tue, 08 Apr 2014 08:35:53 GMT
I wrote some data into a file using MultipleOutputs in mappers. I can see
the contents in this file using "hadoop fs -ls <file>", but its size is
reported as zero by the command "hadoop fs -du <file>" or "hadoop fs -ls
<file>" , as follows:

-rw-r--r--   3 hadoop hadoop         0 2014-04-07 22:06

BTW, when I download this file from HDFS to local file system, I can see
the correct size. Why is it reported as zero size in hadoop CLI?

View raw message