title: Error while exporting the results of a HiveQL query to CSV?
body: <p>I am a beginner in Hadoop/Hive. I did some research to find out a way to export results of HiveQL query to CSV.
  I am running below command line in Putty - </p>
  
  <pre><code>Hive -e ‘use smartsourcing_analytics_prod; select *  from solution_archive_data limit 10;’ &gt; /home/temp.csv;
  </code></pre>
  
  <p>However below is the error I am getting<a href="https://i.stack.imgur.com/DaiCr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DaiCr.jpg" alt="enter image description here"></a></p>
  
  <pre><code>ParseException line 1:0 cannot recognize input near 'Hive' '-' 'e'
  </code></pre>
  
  <p>I would appreciate inputs regarding this.</p>