Thank you very much! This is indeed true. I have had a wrong interpretation of the read command for a few years now, so I would have never found out. And that error never turned up when running a programm locally. (also other programs)
Thanks again! Thibaut Ted Dunning wrote: > > You aren't checking to see how much data got read. There is no guarantee > that this call will read everything you ask for in just one call. > > My suspicion is that the return value will show that <size bytes were > read. > > On Sun, Aug 17, 2008 at 9:20 AM, Thibaut_ <[EMAIL PROTECTED]> wrote: > >> ... >> >> //AND THIS DOESN0T! >> in.read(aaa,0,size); > > ... >> Any ideas on how this can be fixed? I suspect a buffer is wrongly filled >> in >> some cases when the size of the requested read call exceeds a certain >> limit. >> > > > -- > ted > > -- View this message in context: http://www.nabble.com/%22Data-corruption%22-when-reading-file-from-DFS-%28version-0.18.0%2C-0.17.2%29-tp19021171p19023292.html Sent from the Hadoop core-dev mailing list archive at Nabble.com.
