hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Angeles <patr...@cloudera.com>
Subject Re: When copying a file to HDFS, how to control what nodes that file will reside on?
Date Tue, 09 Apr 2013 20:57:41 GMT
If the client is in machine A (e.g., you execute "hadoop fs -put xxxx" from
A), then the first copy will be in machine A.

On Tue, Apr 9, 2013 at 4:49 PM, jeremy p <athomewithagroovebox@gmail.com>wrote:

> Hey all,
> I'm dealing with kind of a bizarre use case where I need to make sure that
> File A is local to Machine A, File B is local to Machine B, etc.  When
> copying a file to HDFS, is there a way to control which machines that file
> will reside on?  I know that any given file will be replicated across three
> machines, but I need to be able to say "File A will DEFINITELY exist on
> Machine A".  I don't really care about the other two machines -- they could
> be any machines on my cluster.
> Thank you.

View raw message