I believe that file modification times are updated only when the file is closed. Are you "appending" to a preexisting file?
thanks, dhruba On Tue, Dec 30, 2008 at 3:14 AM, Sandeep Dhawan <dsand...@hcl.in> wrote: > > Hi, > > I have a application which creates a simple text file on hdfs. There is a > second application which processes this file. The second application picks > up the file for processing only when the file has not been modified for 10 > mins. In this way, the second application is sure that this file is ready > for processing. > > But, what is happening is that the Hadoop is not updating the modification > timestamp of the file even when the file is being written into. The > modification timestamp of the file is same as the timestamp when the file > was created. > > I am using hadoop 0.18.2. > > 1. Is this a bug in hadoop or is this way hadoop works > 2. Is there way by which I can programmitically set the modification > timestamp of the file > > Thanks, > Sandeep > > -- > View this message in context: > http://www.nabble.com/File-Modification-timestamp-tp21215824p21215824.html > Sent from the Hadoop core-user mailing list archive at Nabble.com. > >