Re: FSDataInputStream.read returns -1 with growing file and never continues reading

2012-12-20 Thread Christoph Rupp
-tail " utility. See code > for that at > http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Tail.java?view=markup > (Note the looping at ~74). > > On Thu, Dec 20, 2012 at 5:51 PM, Christoph Rupp wrote: >

FSDataInputStream.read returns -1 with growing file and never continues reading

2012-12-20 Thread Christoph Rupp
Hi, I am experiencing an unexpected situation where FSDataInputStream.read() returns -1 while reading data from a file that another process still appends to. According to the documentation read() should never return -1 but throw Exceptions on errors. In addition, there's more data available, and r