<?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 How to get header in Impala output csv file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52673#M58123</link>
    <description>&lt;P&gt;&amp;nbsp;When I use this command, it produces a nice pipe-delimited file - which is what I want. &amp;nbsp;However, there is no header row. &amp;nbsp;What syntax must I include to ensure that the output csv file has a header row?&lt;/P&gt;&lt;DIV class="lia-component-body"&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;impala-shell -i &amp;lt;servername:portname&amp;gt;&amp;nbsp; -B -q 'SELECT from_unixtime(field00) as 'in_date', field01, field02&amp;nbsp;FROM &amp;lt;table&amp;gt; &amp;nbsp;LIMIT 100;' -o query_out.csv '--output_delimiter=\174'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:20:27 GMT</pubDate>
    <dc:creator>chophouse</dc:creator>
    <dc:date>2022-09-16T11:20:27Z</dc:date>
    <item>
      <title>How to get header in Impala output csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52673#M58123</link>
      <description>&lt;P&gt;&amp;nbsp;When I use this command, it produces a nice pipe-delimited file - which is what I want. &amp;nbsp;However, there is no header row. &amp;nbsp;What syntax must I include to ensure that the output csv file has a header row?&lt;/P&gt;&lt;DIV class="lia-component-body"&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;impala-shell -i &amp;lt;servername:portname&amp;gt;&amp;nbsp; -B -q 'SELECT from_unixtime(field00) as 'in_date', field01, field02&amp;nbsp;FROM &amp;lt;table&amp;gt; &amp;nbsp;LIMIT 100;' -o query_out.csv '--output_delimiter=\174'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:20:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52673#M58123</guid>
      <dc:creator>chophouse</dc:creator>
      <dc:date>2022-09-16T11:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get header in Impala output csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52674#M58124</link>
      <description>&lt;P&gt;Found the answer ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;add " &lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;--print_header&lt;/FONT&gt;&lt;/STRONG&gt; " option to command string&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 22:36:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52674#M58124</guid>
      <dc:creator>chophouse</dc:creator>
      <dc:date>2017-03-26T22:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get header in Impala output csv file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52687#M58125</link>
      <description>&lt;P&gt;Cool, I'm glad you found an answer. Thanks for sharing it here, too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Lars&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:24:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-header-in-Impala-output-csv-file/m-p/52687#M58125</guid>
      <dc:creator>Lars Volker</dc:creator>
      <dc:date>2017-03-27T11:24:18Z</dc:date>
    </item>
  </channel>
</rss>

