Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS, mail # user - HDFS File read issue


Copy link to this message
-
Re: HDFS File read issue
Jeff Zhang 2010-01-25, 07:36
Maybe you can use zookeeper to achieve this
On Mon, Jan 25, 2010 at 3:20 PM, MOHAMMED IRFANULLA S <
[EMAIL PROTECTED]> wrote:

>  Hi,
>
>  I'm using hadoop 0.20.1.
> I would appreciate any help on the following issue in HDFS.
>
> User1 has created a file file1.txt and started writing to this file(Writer
> thread).
> User2 and user3 try to read from this file. But cannot read anything until
> atleast one of the blocks is complete. and they cannot read any block under
> development. (Reader threads)
>
> Is it possible to block/prevent user2 and User3 from reading the file1.txt
> completely until the Writer thread calls close().
> If possible, how to achieve it ?
>
> MOHAMMED IRFANULLA S
> HUAWEI TECHNOLOGIES CO.,LTD. [image: huawei_logo]
>
>
> Address: Huawei Industrial Base
> Bantian Longgang
> Shenzhen 518129, P.R.China
> www.huawei.com
>
> -------------------------------------------------------------------------------------------------------------------------------------
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>

--
Best Regards

Jeff Zhang