<?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: Problem renaming Hive partitioned table and then dropping in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395334#M248921</link>
    <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 18:07:49 GMT</pubDate>
    <dc:creator>Patriciabqc</dc:creator>
    <dc:date>2024-10-16T18:07:49Z</dc:date>
    <item>
      <title>Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395028#M248846</link>
      <description>&lt;P&gt;I renamed a Hive partitioned table DB1.Tab1 to DB1.Tab1_old and then moved another table with the same name but from another database DB2.Tab1 to the first database DB1.Tab1, using the same rename command. It looks like the partitioned directories were merged because when I deleted the first renamed one (DB1.Tab1_old), the moved table partitions (DB1.Tab1) were deleted. I would like to understand why this happened. Regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:32:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395028#M248846</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-11T13:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395053#M248848</link>
      <description>&lt;P&gt;Are you able to reproduce at will?&lt;BR /&gt;If so, provide the Cloudera Runtime version and the associated DDL/DML&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:32:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395053#M248848</guid>
      <dc:creator>JoseManuel</dc:creator>
      <dc:date>2024-10-11T15:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395054#M248849</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/118477"&gt;@Patriciabqc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior depends on what was the table type and it's table properties. The CDP version may be also important as there were some fixes around the rename functionality (whether HDFS location is changed) between the versions.&lt;/P&gt;&lt;P&gt;The behavior is different for managed and external tables. If you rename a &lt;STRONG&gt;managed&lt;/STRONG&gt; table, it should rename the HDFS location too, so you should not end up in such situations. Because of that I assume these were external tables.&lt;BR /&gt;The table property 'TRANSLATED_TO_EXTERNAL'='TRUE' should make an &lt;STRONG&gt;external&lt;/STRONG&gt; table behave like a managed table ("legacy CDH managed table" behavior), so when you rename the table the location is also changed, so probably we can rule out this too, but I mention this for clarity that this is also an option - and maybe a way to avoid this in the future.&lt;/P&gt;&lt;P&gt;Last but not least, for &lt;STRONG&gt;external&lt;/STRONG&gt; tables if the table property &lt;STRONG&gt;'external.table.purge'='true'&lt;/STRONG&gt; is there, then it will delete the HDFS location when the table is dropped. The symptoms suggest this was the case.&lt;/P&gt;&lt;P&gt;I hope this explains.&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:42:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395054#M248849</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-10-11T15:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395062#M248854</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 18:41:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395062#M248854</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-11T18:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395063#M248855</link>
      <description>&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;We use CDP 7.1.7. The table is&amp;nbsp;'external.table.purge'='true'. After the renames, when I dropped the table that was renamed to '_old' it affected the partitions of the one that was moved to the database and renamed to the same name as the other (before being renamed). As if they were both accessing the same directory.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 18:05:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395063#M248855</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-11T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395113#M248868</link>
      <description>&lt;P&gt;Yes, with renaming external tables Hive does not change their locations (to the new desired path, irrespective whether the DB changes or the table name), so once you drop the renamed table, due to the &lt;SPAN&gt;'external.table.purge'='true' it dropped the original location's data directory&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;FYI there were some fixes around the rename functionality,&amp;nbsp;HIVE-24920 fixed in 7.1.7 SP1 and&amp;nbsp;HIVE-26158 fixed in 7.1.7 SP2, not sure if that affects you but it's recommended to apply the latest service pack.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 07:51:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395113#M248868</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-10-14T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395232#M248899</link>
      <description>&lt;P&gt;When I renamed the table, Hive renamed its HDFS directory, but it seemed that in the metastore database the partitions directories were not renamed. Maybe I needed to run some command to change the partitions locations in the metastore after renaming the table...&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:49:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395232#M248899</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-15T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395309#M248912</link>
      <description>&lt;P&gt;Right, thanks for verifying that the partition locations are not renamed. Then it is clearly the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://issues.apache.org/jira/browse/HIVE-26158" target="_self"&gt;HIVE-26158&lt;/A&gt;, which has been fixed in&amp;nbsp;7.1.7 SP2, please plan/test and apply the 7.1.7 SP2 or the even newer &lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/runtime-release-notes/topics/rt-pvc-release-notes-717sp3.html" target="_self"&gt;7.1.7 SP3 version&lt;/A&gt; (recommended) to avoid this in the future. (one should not need to alter the partition locations when table is renamed)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:13:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395309#M248912</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-10-16T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395334#M248921</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 18:07:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395334#M248921</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-16T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395335#M248922</link>
      <description>&lt;PRE&gt;Yes, it seems to be this issue, but we already have 7.1.7 SP2 installed. Maybe SP3 fixed this issue... Thanks!&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Oct 2024 18:10:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395335#M248922</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-16T18:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395342#M248927</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/118477" target="_blank"&gt;@Patriciabqc&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems this was fixed in CDP-7.1.8 according to the TSB, please see the Knowledge base link below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://my.cloudera.com/knowledge/TSB-2022-600-Renaming-translated-external-partition-table?id=353902" target="_blank"&gt;https://my.cloudera.com/knowledge/TSB-2022-600-Renaming-translated-external-partition-table?id=353902&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 19:56:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395342#M248927</guid>
      <dc:creator>MGreen</dc:creator>
      <dc:date>2024-10-16T19:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem renaming Hive partitioned table and then dropping</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395531#M248967</link>
      <description>&lt;P&gt;Ok &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34068"&gt;@MGreen&lt;/a&gt;&amp;nbsp;, thanks for&amp;nbsp;your help!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 18:11:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-renaming-Hive-partitioned-table-and-then-dropping/m-p/395531#M248967</guid>
      <dc:creator>Patriciabqc</dc:creator>
      <dc:date>2024-10-18T18:11:37Z</dc:date>
    </item>
  </channel>
</rss>

