<?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 Merge small files in pyspark for Hive table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/332205#M231106</link>
    <description>&lt;P&gt;I have an ETL flow which transfers data from a hive table to another through pyspark. The tables are partitioned. Although I see that in the partition's path in HDFS there are small parquet files. I want to ask:&lt;BR /&gt;1)How can I merge these files?&lt;BR /&gt;2)Is there any max size or recommended size for hive partitions?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 07:21:30 GMT</pubDate>
    <dc:creator>drgenious</dc:creator>
    <dc:date>2021-12-14T07:21:30Z</dc:date>
    <item>
      <title>Merge small files in pyspark for Hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/332205#M231106</link>
      <description>&lt;P&gt;I have an ETL flow which transfers data from a hive table to another through pyspark. The tables are partitioned. Although I see that in the partition's path in HDFS there are small parquet files. I want to ask:&lt;BR /&gt;1)How can I merge these files?&lt;BR /&gt;2)Is there any max size or recommended size for hive partitions?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 07:21:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/332205#M231106</guid>
      <dc:creator>drgenious</dc:creator>
      <dc:date>2021-12-14T07:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge small files in pyspark for Hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/333343#M231419</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72966"&gt;@drgenious&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)If those small files are delta files, you can run compaction manually to merge all of them&lt;/P&gt;&lt;P&gt;more details on manual compaction described in the link below:&lt;BR /&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/managing-hive/topics/hive_initiate_hive_compaction.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/managing-hive/topics/hive_initiate_hive_compaction.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)C&lt;SPAN&gt;urrent Hive versions with RDBMS metastore backend should be able to handle 10 000+ partitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sree&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 13:45:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/333343#M231419</guid>
      <dc:creator>sree_nv</dc:creator>
      <dc:date>2022-01-07T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge small files in pyspark for Hive table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/333382#M231428</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72966"&gt;@drgenious&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;set hive.merge.tezfiles=true; to fix merge file issue&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 12:40:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merge-small-files-in-pyspark-for-Hive-table/m-p/333382#M231428</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2022-01-08T12:40:56Z</dc:date>
    </item>
  </channel>
</rss>

