hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MOHAMMED IRFANULLA S <m.irfanu...@huawei.com>
Subject RE: HDFS File read issue
Date Mon, 25 Jan 2010 07:56:08 GMT
Hi, Jeff. Thanks for your reply. 
Is there a way to achieve this apart from using Zookeeper ?
 
 
MOHAMMED IRFANULLA S
HUAWEI TECHNOLOGIES CO.,LTD. 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!

 

  _____  

From: Jeff Zhang [mailto:zjffdu@gmail.com] 
Sent: Monday, January 25, 2010 1:06 PM
To: hdfs-user@hadoop.apache.org; m.irfanulla@huawei.com
Subject: Re: HDFS File read issue


Maybe you can use zookeeper to achieve this



On Mon, Jan 25, 2010 at 3:20 PM, MOHAMMED IRFANULLA S
<m.irfanulla@huawei.com> 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. 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


Mime
View raw message