title: Export Hadoop output to text files
body: <p>After I run some sample Map Reduce programs I check the output with a command like this:<br>
  <code>hdfs -cat \usr\cloudera\output\part-r-0000</code></p>
  
  <p>And it looks something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/dm4tM.png" alt="enter image description here"></p>
  
  <p>I was wondering how to export it as a text or csv for further analysis.  I want to put the data into excel for anlysis. I'm using Cloudera VM for Hadoop. </p>
  
  <p>I did a <code>hdfs -get \usr\cloudera\output\part-r-0000 \somewhere\results.txt</code> but it messed the contents. </p>
  
  <p>Please suggest. </p>