<?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 Unable to delete partition having %01 in the name in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366428#M239577</link>
    <description>&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have accidently created a partition having characters %01 in the name. %01 is start of header `as per the notepad++`.&lt;/P&gt;&lt;P&gt;When i am trying to delete the partition using ALTER statement, there is no error but partition also not getting deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone suggest how to delete such partitions with special characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALTER TABLE &amp;lt;table_name&amp;gt; DROP IF EXISTS PARTITION (code='YATHAH%0188QW');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 00:49:56 GMT</pubDate>
    <dc:creator>hive1</dc:creator>
    <dc:date>2023-03-20T00:49:56Z</dc:date>
    <item>
      <title>Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366428#M239577</link>
      <description>&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have accidently created a partition having characters %01 in the name. %01 is start of header `as per the notepad++`.&lt;/P&gt;&lt;P&gt;When i am trying to delete the partition using ALTER statement, there is no error but partition also not getting deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone suggest how to delete such partitions with special characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALTER TABLE &amp;lt;table_name&amp;gt; DROP IF EXISTS PARTITION (code='YATHAH%0188QW');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 00:49:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366428#M239577</guid>
      <dc:creator>hive1</dc:creator>
      <dc:date>2023-03-20T00:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366456#M239584</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104102"&gt;@hive1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you set below param:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;set hive.msck.path.validation=skip;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MSCK REPAIR TABLE tablename DROP PARTITIONS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:11:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366456#M239584</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2023-03-20T08:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366459#M239586</link>
      <description>&lt;P&gt;Hello Asish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for response. I tried as per your comments still the result is same.&lt;/P&gt;&lt;P&gt;Partition is not getting dropped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:40:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366459#M239586</guid>
      <dc:creator>hive1</dc:creator>
      <dc:date>2023-03-20T08:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366463#M239587</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104102"&gt;@hive1&lt;/a&gt;&amp;nbsp; WHat is the error you recieved?&lt;/P&gt;&lt;P&gt;Can you also try with&amp;nbsp;&lt;SPAN&gt;set hive.msck.path.validation=ignore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:42:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366463#M239587</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2023-03-20T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366466#M239588</link>
      <description>&lt;P&gt;There is no error, i think the partition is not getting recognized because of -&amp;gt; %01&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 08:53:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366466#M239588</guid>
      <dc:creator>hive1</dc:creator>
      <dc:date>2023-03-20T08:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366471#M239590</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104102"&gt;@hive1&lt;/a&gt;&amp;nbsp;You need to follow&amp;nbsp;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/using-hiveql/topics/hive-msck-repair.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/using-hiveql/topics/hive-msck-repair.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 09:15:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366471#M239590</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2023-03-20T09:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366572#M239618</link>
      <description>&lt;P&gt;Hello Asish, This also didn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 05:31:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366572#M239618</guid>
      <dc:creator>hive1</dc:creator>
      <dc:date>2023-03-21T05:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366789#M239676</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104102"&gt;@hive1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What is the hive version? Can you try the below and revert&lt;BR /&gt;Set&amp;nbsp; the&amp;nbsp;&lt;SPAN&gt;below two properties before executing the rename partition&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;hive&amp;gt; set fs.hdfs.impl.disable.cache=false;&lt;BR /&gt;hive&amp;gt; set fs.file.impl.disable.cache=false;&lt;/LI-SPOILER&gt;&lt;P&gt;Then run the &lt;SPAN&gt;rename partition&amp;nbsp;&lt;/SPAN&gt;command&lt;/P&gt;&lt;LI-SPOILER&gt;hive&amp;gt; ALTER TABLE &amp;lt;table_name&amp;gt; (code='YATHAH%0188QW') RENAME TO PARTITION (code='new_name');&lt;/LI-SPOILER&gt;&lt;P&gt;Share the output for further analysis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:39:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366789#M239676</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2023-03-23T12:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete partition having %01 in the name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366827#M239687</link>
      <description>&lt;P&gt;Found the solution - replace %01 --&amp;gt; \001 and it did the trick to delete the partition.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 22:55:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-delete-partition-having-01-in-the-name/m-p/366827#M239687</guid>
      <dc:creator>hive1</dc:creator>
      <dc:date>2023-03-23T22:55:37Z</dc:date>
    </item>
  </channel>
</rss>

