<?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 can I export query results to a csv file in Impala shell? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/366436#M239579</link>
    <description>&lt;P&gt;But it will not allow to append result of multiple impala queries. Can it be possible to have any option in the command will will allow user to add results of multiple impala queries result in same output file with headers specific to each query.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 05:43:27 GMT</pubDate>
    <dc:creator>HadDEV</dc:creator>
    <dc:date>2023-03-20T05:43:27Z</dc:date>
    <item>
      <title>How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17312#M14411</link>
      <description>&lt;P&gt;How can I export query results to a csv file in Impala shell?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:05:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17312#M14411</guid>
      <dc:creator>Shreesha</dc:creator>
      <dc:date>2022-09-16T09:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17314#M14412</link>
      <description>You can use -o filename or --output_file filename &amp;amp; --output_delimiter=character options to generate output in csv file format.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Aug 2014 23:18:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17314#M14412</guid>
      <dc:creator>daai_evangelist</dc:creator>
      <dc:date>2014-08-20T23:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17316#M14413</link>
      <description>&lt;P&gt;Thanks a lot for the response, I tried that but somehow its not working, do you have any sample example...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 23:22:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17316#M14413</guid>
      <dc:creator>Shreesha</dc:creator>
      <dc:date>2014-08-20T23:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17322#M14414</link>
      <description>&lt;P&gt;Try below syntax. Remove -k if your environment is not kerberosized -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell -k -i servername:portname&amp;nbsp;-B -q 'select *&amp;nbsp;from table' -o filename&amp;nbsp;'--output_delimiter=\001'&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 01:57:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/17322#M14414</guid>
      <dc:creator>daai_evangelist</dc:creator>
      <dc:date>2014-08-21T01:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/31126#M14415</link>
      <description>&lt;P&gt;Can i do same with JDBC driver in java?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 09:13:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/31126#M14415</guid>
      <dc:creator>lamxan</dc:creator>
      <dc:date>2015-08-24T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/52655#M14416</link>
      <description>&lt;P&gt;This command produces an output file but there is no header. &amp;nbsp;How can I produce an output csv file with a header?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 16:50:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/52655#M14416</guid>
      <dc:creator>chophouse</dc:creator>
      <dc:date>2017-03-25T16:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/53013#M14417</link>
      <description>&lt;P&gt;I was trying to out put a query to a file after ssh into the server where impala was running. This is the query that i used&amp;nbsp;&lt;STRONG&gt;impala-shell -B -q 'select * from requests limit 1' -o&amp;nbsp;&lt;SPAN&gt;query_result&lt;/SPAN&gt;.txt '--output_delimiter=,'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the another way to have a complex query/queries(delimited by &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; in a file and output result to a file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;impala-shell -B -f my-query.txt -o query_result.txt '--output_delimiter=,'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;adding headers to the output data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;impala-shell -B -f my-query.txt -o&amp;nbsp;&lt;SPAN&gt;query_result.txt&lt;/SPAN&gt;&amp;nbsp;--print_header '--output_delimiter=,'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:47:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/53013#M14417</guid>
      <dc:creator>pushyami</dc:creator>
      <dc:date>2017-03-31T15:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/53032#M14418</link>
      <description>Thanks pushyami, for the bit about adding a header</description>
      <pubDate>Fri, 31 Mar 2017 16:17:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/53032#M14418</guid>
      <dc:creator>chophouse</dc:creator>
      <dc:date>2017-03-31T16:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/59115#M14419</link>
      <description>Great! This is helpful</description>
      <pubDate>Tue, 22 Aug 2017 17:28:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/59115#M14419</guid>
      <dc:creator>ekaifan</dc:creator>
      <dc:date>2017-08-22T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I export query results to a csv file in Impala shell?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/366436#M239579</link>
      <description>&lt;P&gt;But it will not allow to append result of multiple impala queries. Can it be possible to have any option in the command will will allow user to add results of multiple impala queries result in same output file with headers specific to each query.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 05:43:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-export-query-results-to-a-csv-file-in-Impala-shell/m-p/366436#M239579</guid>
      <dc:creator>HadDEV</dc:creator>
      <dc:date>2023-03-20T05:43:27Z</dc:date>
    </item>
  </channel>
</rss>

