title: How to make sure map task node is always one of the input split node
body: <p>I am using hadoop map for doing image analysis but in a little bit unconventional way from what hadoop was designed to do. I am reading images from NAS instead of HDFS and analyzing them through a pre-compiled binary called by map task. Image location along with key is stored in a big text file and its split across multiple data nodes.</p>
  
  <p>So if my input split is in node 2,3,4 and my map task is running in node 6, I am getting inaccurate result.</p>
  
  <p>How can i make sure, that hadoop is scheduling map tasks such that map task node is always one of the input split node?</p>