<?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: Compression is not happening in hive using parquet file format. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127791#M51538</link>
    <description>&lt;P&gt;It working now with 'PARQUET.COMPRESSION'='SNAPPY'&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 14:19:10 GMT</pubDate>
    <dc:creator>Yukti</dc:creator>
    <dc:date>2017-01-17T14:19:10Z</dc:date>
    <item>
      <title>Compression is not happening in hive using parquet file format.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127789#M51536</link>
      <description>&lt;P&gt;I was creating one table in hive using beeline in which i need to compress my data using PARQUET file format.&lt;/P&gt;&lt;P&gt;
so i try to use set parquet.compression=SNAPPY; &lt;/P&gt;&lt;P&gt;But while executing this command i am getting one error as : &lt;/P&gt;&lt;P&gt;Error: Error while processing statement: Cannot modify parquet.compression at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)&lt;/P&gt;&lt;P&gt;
I checked and this property is not present in whitelist of params and we dont have permissions to edit the whitelist. &lt;/P&gt;&lt;P&gt;so i got one resolution as instead of using set parquet.compression=SNAPPY; at runtime I used the table properties TBLPROPERTIES ('PARQUET.COMPRESS'='SNAPPY') and then it works the table is successfully created. &lt;/P&gt;&lt;P&gt;But when i loaded the data to table and by using describe table i compare the data with my other table in which i did not used the compression, the size of data is same.&lt;/P&gt;&lt;P&gt;so that means by using 'PARQUET.COMPRESS'='SNAPPY' compression is not happening. &lt;/P&gt;&lt;P&gt;Is there any other property which we need to set to get the compression done. &lt;/P&gt;&lt;P&gt;For Avro i have seen the below two properties to be set to do the compression &lt;/P&gt;&lt;P&gt;hive&amp;gt; set hive.exec.compress.output=true; &lt;/P&gt;&lt;P&gt;hive&amp;gt; set avro.output.codec=snappy; &lt;/P&gt;&lt;P&gt;Likewise do i need to set some other property for parquet file?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 19:26:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127789#M51536</guid>
      <dc:creator>Yukti</dc:creator>
      <dc:date>2017-01-13T19:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compression is not happening in hive using parquet file format.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127790#M51537</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12568/yukagr19.html" nodeid="12568"&gt;@Yukti  Agrawal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How much data have you inserted to compare between the two tables ? Can you try it out with a substantially bigger data set ? Snappy is not very aggressive on reducing the size but rather on the compress/decompress operation.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 05:38:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127790#M51537</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2017-01-14T05:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compression is not happening in hive using parquet file format.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127791#M51538</link>
      <description>&lt;P&gt;It working now with 'PARQUET.COMPRESSION'='SNAPPY'&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 14:19:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Compression-is-not-happening-in-hive-using-parquet-file/m-p/127791#M51538</guid>
      <dc:creator>Yukti</dc:creator>
      <dc:date>2017-01-17T14:19:10Z</dc:date>
    </item>
  </channel>
</rss>

