You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Inder Pall <in...@gmail.com> on 2011/11/28 12:43:06 UTC

hdfs behavior

People,

i am seeing the following -

1. writing to a large file on HDFS
2. tail -f on the same file shows data is streaming.
3. hadoop dfs -ls on the same file shows size as 0.

Has anyone experienced this?

-- Inder

RE: hdfs behavior

Posted by Uma Maheswara Rao G <ma...@huawei.com>.
I think, you might not completed even single block write completely.

Length will be updated in NN after completing the block. Currently partial block lengths will not be included in length calculation.



Regards,

Uma



________________________________
From: Inder Pall [inder.pall@gmail.com]
Sent: Monday, November 28, 2011 5:13 PM
To: hdfs-user@hadoop.apache.org
Subject: hdfs behavior

People,

i am seeing the following -

1. writing to a large file on HDFS
2. tail -f on the same file shows data is streaming.
3. hadoop dfs -ls on the same file shows size as 0.

Has anyone experienced this?

-- Inder