title: Hadoop read multiple lines at a time
body: <p>I have a file in which a set of every four lines represents a record.</p>
  
  <p>eg, first four lines represent record1, next four represent record 2 and so on..</p>
  
  <p>How can I ensure Mapper input these four lines at a time?</p>
  
  <p>Also, I want the file splitting in Hadoop to happen at the record boundary (line number should be a multiple of four), so records don't get span across multiple split files.. </p>
  
  <p>How can this be done?</p>