Get File path for a blockid

2009-11-15 Thread smarthrish
Is it possible to get the filepath for a file given its blockid ? I can see FSImage have that information , but is there any other way out ? Regards, Hrishi

Re: Dynamically adjusting replication factor for a data block

2009-11-15 Thread Philip Zeyliger
On Sun, Nov 15, 2009 at 9:53 AM, wrote: > Thanks Philip. > Also how about setting the replication factor at a block level ? > Is there support for this in the current version of hdfs ? > I believe this is not possible right now. -- Philip

Re: Dynamically adjusting replication factor for a data block

2009-11-15 Thread smarthrish
Thanks Philip. Also how about setting the replication factor at a block level ? Is there support for this in the current version of hdfs ? - Hrishi - Original Message From: Philip Zeyliger To: common-dev@hadoop.apache.org Sent: Sun, November 15, 2009 12:48:43 PM Subject: Re: Dynamica

Re: Dynamically adjusting replication factor for a data block

2009-11-15 Thread Philip Zeyliger
On Sun, Nov 15, 2009 at 9:45 AM, wrote: > This needs to be done manually. > Is there a way to do this at runtime i.e. in the java code ? > Sure. It's a method in the FileSystem class: http://hadoop.apache.org/common/docs/r0.18.3/api/org/apache/hadoop/fs/FileSystem.html#setReplication%28org.apa

Re: Dynamically adjusting replication factor for a data block

2009-11-15 Thread smarthrish
This needs to be done manually. Is there a way to do this at runtime i.e. in the java code ? - Hrishi - Original Message From: Sagar To: common-dev@hadoop.apache.org Sent: Sun, November 15, 2009 1:20:12 AM Subject: Re: Dynamically adjusting replication factor for a data block I dont