title: Hadoop searching words from one file in another file
body: <p>I want to build a hadoop application which can read words from one file and search in another file.</p>
  
  <p>If the word exists - it has to write to one output file
  If the word doesn't exist - it has to write to another output file</p>
  
  <p>I tried a few examples in hadoop. I have two questions</p>
  
  <p>Two files are approximately 200MB each. Checking every word in another file might cause out of memory. Is there an alternative way of doing this?</p>
  
  <p>How to write data to different files because output of the reduce phase of hadoop writes to only one file. Is it possible to have a filter for reduce phase to write data to different output files?</p>
  
  <p>Thank you.</p>