title: MapReduce reading two more columns from text file
body: <p>I am new to MapReduce and your feedback is appreciated. I have a text file that has data in foll. format -</p>
  
  <hr>
  
  <pre><code>State1  County1  Students#(Integer) Teacher#(Integer) Classrooms#(Integer)
  State1  County2  Students#(Integer) Teacher#(Integer) Classrooms#(Integer)
  State1  County3  Students#(Integer) Teacher#(Integer) Classrooms#(Integer)
  State2  County1  Students#(Integer) Teacher#(Integer) Classrooms#(Integer)
  State2  County2  Students#(Integer) Teacher#(Integer) Classrooms#(Integer)
  State2  County3  Students#(Integer) Teacher#(Integer) Classrooms#(Integer)
  </code></pre>
  
  <hr>
  
  <p>I have written mapreducer that gives me the foll. output - </p>
  
  <pre><code>State1 Total&lt;Students#&gt;
  State2 Total&lt;Students#&gt;
  </code></pre>
  
  <hr>
  
  <p>I need the same for Teacher and Classrooms cols - Final output needed:</p>
  
  <pre><code>State1 Total&lt;Students#&gt; Total&lt;Teacher#&gt;  Total&lt;Classrooms#&gt;
  State2 Total&lt;Students#&gt; Total&lt;Teacher#&gt;  Total&lt;Classrooms#&gt;
  </code></pre>