I am running  two different hadoop map/reduce task in standalone mode on
single node which read same folder. I found that Task1 was not  able to
processed those file which have  been processed by Task2 and vice-versa. It
gave some IO error. It seems that in standalone mode  while processing the
file map task usually locks the file internally (Hoping that should not  be
the case in DFS mode)

One more observation I found that two map task can't be run on single task
tracker or single node simultaneously(even if you setup two different hadoop
directory and try to run map task from both places) . Possible reason I
could think for is " Hadoop stores its intermadiate map /reduce task output
into some file format in /tmp/ folder. Hence if we run two map task
simultneously then it finds conflict keep the intermadiate files at the same
location and results error.

This is my interpretation.

Any feasible solution are appreciable for the standalone mode.

Thanks
Deepak



2008/8/28 lohit <[EMAIL PROTECTED]>

> Hi Deepak,
> Can you explain what process and what files they are trying to read? If you
> are talking about map/reduce tasks reading files on DFS, then, yes parallel
> reads are allowed. Multiple writers are not.
> -Lohit
>
>
>
> ----- Original Message ----
> From: Deepak Diwakar <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, August 28, 2008 6:06:58 AM
> Subject: parallel hadoop process reading same input file
>
> Hi,
>
> When I am running two hadoop processes in parallel and both process has to
> read same file. It fails.
> Of course one solution is to keep copy of file into different location so
> that accessing simultaneously would not cause any problem. But what if we
> don't want to do so because it costs extra space.
> Plz do suggest me any suitable solution to this.
>
> Thanks & Regards,
> Deepak
>
>

Reply via email to