<?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 get non-compressed .csv output from hive table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129141#M39294</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2593/zackriesland.html" nodeid="2593"&gt;@Zack Riesland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you tried setting the following:&lt;/P&gt;&lt;PRE&gt;set hive.exec.compress.output=false&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Aug 2016 23:48:43 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-08-31T23:48:43Z</dc:date>
    <item>
      <title>How to get non-compressed .csv output from hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129139#M39292</link>
      <description>&lt;P&gt;
	I have a hive table that I want to export to a local .csv file.&lt;/P&gt;&lt;P&gt;
	I tried this approach:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;code&amp;gt;insert overwrite local directory '/my/local/file/path' row format delimited fields terminated by ',' select * from my_table;
&lt;/PRE&gt;&lt;P&gt;This puts a series of .deflate files in /my/local/file/path, but I want plain ol' .csv files. &lt;/P&gt;&lt;P&gt;How do I accomplish this?&lt;/P&gt;&lt;P&gt;I tried making a copy of the source table that is not compressed and is 'stored as textfile', but the output is still the same.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 23:27:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129139#M39292</guid>
      <dc:creator>zack_riesland</dc:creator>
      <dc:date>2016-08-31T23:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get non-compressed .csv output from hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129140#M39293</link>
      <description>&lt;P&gt;Note, this works well, but I'd still like to know how to utilize the method mentioned above:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;hive -e 'set hive.cli.print.header=true; select * from my_table' | sed 's/[\t]/,/g'  &amp;gt; /my/path/output_folder/output_file.csv&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 23:44:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129140#M39293</guid>
      <dc:creator>zack_riesland</dc:creator>
      <dc:date>2016-08-31T23:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get non-compressed .csv output from hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129141#M39294</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2593/zackriesland.html" nodeid="2593"&gt;@Zack Riesland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you tried setting the following:&lt;/P&gt;&lt;PRE&gt;set hive.exec.compress.output=false&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 23:48:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129141#M39294</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-08-31T23:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get non-compressed .csv output from hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129142#M39295</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2593/zackriesland.html"&gt;@Zack Riesland&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should be able to get this done (as a tab separated) by doing the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;hive -e 'use &amp;lt;database&amp;gt;; select * from &amp;lt;table&amp;gt;;' &amp;gt; /tmp/&amp;lt;file&amp;gt;.csv&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 00:15:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-non-compressed-csv-output-from-hive-table/m-p/129142#M39295</guid>
      <dc:creator>dkozlowski</dc:creator>
      <dc:date>2016-09-01T00:15:44Z</dc:date>
    </item>
  </channel>
</rss>

