<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to export the header of hive table into CSV file? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-export-the-header-of-hive-table-into-CSV-file/m-p/223058#M184923</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/80182/chiranjeevivenkata51.html" nodeid="80182"&gt;Venkat&lt;/A&gt; Please try this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;hive -e 'set hive.cli.print.header=true; select * from your_Table' | sed 's/[\t]/,/g'  &amp;gt; /home/yourfile.csv&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Original answer &lt;A href="https://stackoverflow.com/questions/17086642/how-to-export-a-hive-table-into-a-csv-file"&gt;https://stackoverflow.com/questions/17086642/how-to-export-a-hive-table-into-a-csv-file&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 12:18:55 GMT</pubDate>
    <dc:creator>ssharma</dc:creator>
    <dc:date>2018-06-18T12:18:55Z</dc:date>
  </channel>
</rss>

