title: Write mapper output to a file and reducer too
body: <p>I am writing mappers and reducers for hadoop streaming in python. Mappers and reducers are running fine with out any problem. I want mapper to write output to a file and to reducer also. Is it possible to do this and how? If it is impossible i need to run mapper code alone, again. I execute as below,</p>
  
  <pre><code>hadoop jar /opt/mapr/hadoop/hadoop-2.7.0/share/hadoop/tools/lib/hadoop-streaming-2.7.0-mapr-1602.jar -Dmapreduce.job.queuename=&lt;q-name&gt; -Dmapreduce.map.java.opts=-Xmx40960m -Dmapreduce.map.memory.mb=5000 -Dyarn.app.mapreduce.am.resource.mb=20000 -Dmapreduce.task.timeout=180000000 -mapper "&lt;mapper-code-loc&gt;.py" -reducer "&lt;reducer-code-loc&gt;.py" -input "input-hdfs-loc" -output "output-hdfs-location" -numReduceTasks 3
  </code></pre>
  
  <p>Any help here? Thank you.</p>