There is an algorithm. Each block should have a copy on different nodes. In your case, each block will have a copy on each of the nodes.
Take care, -stu -----Original Message----- From: Rita <rmorgan...@gmail.com> Date: Wed, 9 Mar 2011 22:07:37 To: <hdfs-user@hadoop.apache.org> Reply-To: hdfs-user@hadoop.apache.org Subject: how does hdfs determine what node to use? I have a 2 rack cluster. All of my files have a replication factor of 2. How does hdfs determine what node to use when serving the data? Does it always use the first rack? or is there an algorithm for this? -- --- Get your facts first, then you can distort them as you please.--