Just noticed that in the patch on HDFS-2576, the getPipeline is not invoked. There are some other minor issues discovered. Will fix all of them in one patch.
Backport HDFS-2576 to branch-1 (this is the favoredNodes API related changes)
Namenode should have a favored nodes hint to enable clients to have control over block placement.