Hi, Thanks for the reply. Does this mean that once I close a file, I can open it only for reading? And if I reopen the same file to write any data then the old data will be lost and again its as good as a new file being created with the same name?
On Thu, Mar 27, 2008 at 12:23 PM, dhruba Borthakur <[EMAIL PROTECTED]> wrote: > HDFS files, once closed, cannot be reopened for writing. See HADOOP-1700 > for more details. > > Thanks, > dhruba > > -----Original Message----- > From: Raghavendra K [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2008 11:29 PM > To: [email protected] > Subject: Append data in hdfs_write > > Hi, > I am using > hdfsWrite to write data onto a file. > Whenever I close the file and re open it for writing it will start > writing > from the position 0 (rewriting the old data). > Is there any way to append data onto a file using hdfsWrite. > I cannot use hdfsTell because it works only when opened in RDONLY mode > and > also I dont know the number of bytes written onto the file previously. > Please throw some light onto it. > > -- > Regards, > Raghavendra K > -- Regards, Raghavendra K
