title: How can i output hadoop result in csv format
body: <p>I need to output my hadoop result in .csv format.
  how will i do this?
  My code :<a href="https://github.com/studhadoop/xml/blob/master/XmlParser11.java" rel="noreferrer">https://github.com/studhadoop/xml/blob/master/XmlParser11.java</a></p>
  
  <p>should i simply include csvoutputFormat in my code.
  I am using mapreduce API</p>
  
  <p>myjob.sh</p>
  
  <pre><code>bin/hadoop jar /var/root/ALA/ala_jar/clsperformance.jar ala.clsperf.ClsPerf /user/root/ala_xmlrpt/Amrita\ Vidyalayam\,\ Karwar_Class\ 1\ B_ENG.xml  /user/root/ala_xmlrpt-outputshell4
  
  bin/hadoop fs -get /user/root/ala_xmlrpt-outputshell4/part-r-00000 /Users/jobsubmit
  
  
  cat /Users/jobsubmit/part-r-00000 /Users/jobsubmit/output.csv
  </code></pre>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>ys i was missing > in cat</p>
  
  <pre><code>cat /Users/jobsubmit/part-r-00000&gt; /Users/jobsubmit/output.csv
  </code></pre>