<?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: Hive Partition in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/90079#M4120</link>
    <description>I think the question was about Partitions, not Files?</description>
    <pubDate>Wed, 08 May 2019 04:12:20 GMT</pubDate>
    <dc:creator>EricL</dc:creator>
    <dc:date>2019-05-08T04:12:20Z</dc:date>
    <item>
      <title>Hive Partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/89494#M4118</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hive partition – I have set 10 partition in a table, how can I reduce it to 6 partition without dropping table from HDFS?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:19:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/89494#M4118</guid>
      <dc:creator>techshaj</dc:creator>
      <dc:date>2022-09-16T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/89680#M4119</link>
      <description>&lt;P&gt;&lt;EM&gt;You can&amp;nbsp; use the&amp;nbsp; below &lt;STRONG&gt;hdfs&lt;/STRONG&gt; command&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ hdfs dfs -cat hive_table_data_folder/p* &amp;gt; new_file_name&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Let me know whether that helped&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 04:12:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/89680#M4119</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-04-29T04:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/90079#M4120</link>
      <description>I think the question was about Partitions, not Files?</description>
      <pubDate>Wed, 08 May 2019 04:12:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/90079#M4120</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-05-08T04:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Partition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/90080#M4121</link>
      <description>I don't see super easy way, but below might help:&lt;BR /&gt;&lt;BR /&gt;1. if this table is not external, make it external first:&lt;BR /&gt;ALTER TABLE &amp;lt;table&amp;gt; SET TBLPROPERTIES('EXTERNAL'='TRUE')&lt;BR /&gt;&lt;BR /&gt;2. drop the table&lt;BR /&gt;&lt;BR /&gt;3. create a new table and define same partition column&lt;BR /&gt;&lt;BR /&gt;4. manually move files in another 4 partition directories into the 6 partition directories that you want to keep evenly&lt;BR /&gt;&lt;BR /&gt;5. remove the empty directories under the table&lt;BR /&gt;&lt;BR /&gt;6. msck repair table to recover the 6 current partitions&lt;BR /&gt;&lt;BR /&gt;Hope above can help.&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 08 May 2019 04:15:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Partition/m-p/90080#M4121</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-05-08T04:15:36Z</dc:date>
    </item>
  </channel>
</rss>

