Kevin 写道:
Hi,
This is about dfs only, not to consider mapreduce. It may sound like a
strange need, but sometimes I want to read a block from a specific
data node which holds a replica. Figuring out which datanodes have the
block is easy. But is there an easy way to specify which datanode I
want to load from?
Best,
-Kevin
DFSClient will choose a node that contains a replicas of the block for
you. The chosen node will be the nearest node to your client node. This
method is awesome.
plz let me know why you want to specify the datanode yourself :)