RE: Reader/Writer problem in HDFS

2011-07-28 Thread Laxman
: common-u...@hadoop.apache.org Subject: Re: Reader/Writer problem in HDFS Thanks Laxman! That would definitely help things. :) Is there a better FileSystem/other method call to create a file in one go (i.e. atomic i guess?), without having to call create() and then write to the stream? ..meghana On

Re: Reader/Writer problem in HDFS

2011-07-28 Thread Meghana
Thanks Laxman! That would definitely help things. :) Is there a better FileSystem/other method call to create a file in one go (i.e. atomic i guess?), without having to call create() and then write to the stream? ..meghana On 28 July 2011 16:12, Laxman wrote: > One approach can be use some ".

RE: Reader/Writer problem in HDFS

2011-07-28 Thread Laxman
One approach can be use some ".tmp" extension while writing. Once the write is completed rename back to original file name. Also, reducer has to filter out ".tmp" files. This will ensure reducer will not pickup the partial files. We do have the similar scenario where the a/m approach resolved the