<?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: Inserting to text table compressed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inserting-to-text-table-compressed/m-p/60157#M68302</link>
    <description>Impala won't be able to create gzip compression format for text file. Please refer to below documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/impala_file_formats.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/impala_file_formats.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It mentioned below:&lt;BR /&gt;&lt;BR /&gt;For text format, if LZO compression is used, you must create the table and load data in Hive.&lt;BR /&gt;&lt;BR /&gt;If other kinds of compression are used, you must load data through LOAD DATA, Hive, or manually in HDFS.&lt;BR /&gt;&lt;BR /&gt;So the short answer is that you can't do it in Impala.</description>
    <pubDate>Wed, 20 Sep 2017 11:53:41 GMT</pubDate>
    <dc:creator>EricL</dc:creator>
    <dc:date>2017-09-20T11:53:41Z</dc:date>
    <item>
      <title>Inserting to text table compressed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inserting-to-text-table-compressed/m-p/60134#M68301</link>
      <description>&lt;P&gt;I see no way to specify a compression default in the create table statement, so I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET COMPRESSION_CODEC=gzip;insert overwrite &amp;lt;text_table&amp;gt; select .. from &amp;lt;another_table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got "&lt;SPAN&gt;Writing to compressed text table is not supported. Use query option ALLOW_UNSUPPORTED_FORMATS to override." but&amp;nbsp;ALLOW_UNSUPPORTED_FORMATS shouldn't be used according to docs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a trick to having impala write text files compressed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mauricio&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:16:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inserting-to-text-table-compressed/m-p/60134#M68301</guid>
      <dc:creator>mauricio</dc:creator>
      <dc:date>2022-09-16T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting to text table compressed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inserting-to-text-table-compressed/m-p/60157#M68302</link>
      <description>Impala won't be able to create gzip compression format for text file. Please refer to below documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/impala_file_formats.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/impala_file_formats.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It mentioned below:&lt;BR /&gt;&lt;BR /&gt;For text format, if LZO compression is used, you must create the table and load data in Hive.&lt;BR /&gt;&lt;BR /&gt;If other kinds of compression are used, you must load data through LOAD DATA, Hive, or manually in HDFS.&lt;BR /&gt;&lt;BR /&gt;So the short answer is that you can't do it in Impala.</description>
      <pubDate>Wed, 20 Sep 2017 11:53:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inserting-to-text-table-compressed/m-p/60157#M68302</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2017-09-20T11:53:41Z</dc:date>
    </item>
  </channel>
</rss>

