Re: Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-02 Thread Jason Rutherglen
gt; something that I won't be supporting myself in production against an > increasingly diverging upstream. > >    - Andy > > > --- On Wed, 3/2/11, Todd Lipcon wrote: > >> From: Todd Lipcon >> Subject: Re: Is DFSInputStream.read(long position,...) designed

Re: Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-02 Thread Todd Lipcon
x27;t be supporting myself in production against an > increasingly diverging upstream. Agreed completely. -Todd > > --- On Wed, 3/2/11, Todd Lipcon wrote: > >> From: Todd Lipcon >> Subject: Re: Is DFSInputStream.read(long position,...) designed for multi >> threa

Re: Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-02 Thread Andrew Purtell
ad(long position,...) designed for multi > threaded access? > To: "Jason Rutherglen" > Cc: hdfs-user@hadoop.apache.org > Date: Wednesday, March 2, 2011, 2:10 PM > On Wed, Mar 2, 2011 at 8:17 AM, Jason > Rutherglen > > wrote: > > Todd, > > > > T

Re: Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-02 Thread Todd Lipcon
On Wed, Mar 2, 2011 at 8:17 AM, Jason Rutherglen wrote: > Todd, > > Thanks for the reply.  I looked at HDFS-941 which seems to remove the > redundant creation of BlockReaders.  That and HDFS-347 will solve some > of the issues, however I think there's also the sendmsg() of the file > descriptor th

Re: Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-02 Thread Jason Rutherglen
Todd, Thanks for the reply. I looked at HDFS-941 which seems to remove the redundant creation of BlockReaders. That and HDFS-347 will solve some of the issues, however I think there's also the sendmsg() of the file descriptor that also needs to be implemented? Jason On Tue, Mar 1, 2011 at 5:58

Re: Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-01 Thread Todd Lipcon
Hi Jason, Yes, this method is currently very inefficient.. HDFS-941 will hopefully improve this situation, but currently there's no particularly efficient way to do multithreaded random access. -Todd On Tue, Mar 1, 2011 at 4:24 PM, Jason Rutherglen wrote: > It's unsynchronized however it's crea

Is DFSInputStream.read(long position,...) designed for multi threaded access?

2011-03-01 Thread Jason Rutherglen
It's unsynchronized however it's creating a new BlockReader on each call, that seems like a problem?