<?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: How to rename partition value in Hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101054#M13807</link>
    <description>&lt;P&gt;@Gangadhar Kadam , thanks for the suggestion, but we circumvent the problem in an unethical way. We took table backup and then renamed partitions in Hive warehouse and then ran msck repair table command. It created new partitions in Hive which were renamed and then we created directories with old partition names and dropped them with drop partition command deleting metastore entry. &lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 18:04:38 GMT</pubDate>
    <dc:creator>nilesh_shrimant</dc:creator>
    <dc:date>2016-02-04T18:04:38Z</dc:date>
    <item>
      <title>How to rename partition value in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101050#M13803</link>
      <description>&lt;P&gt;We have a table with partitions as p_date/p_workflow/p_attempt, we have data in p_date as "2016-10-15" which we need to change to "2015-10-15". Query we used is "alter table "table_name" partition (p_date='2016-10-15' ,p_workflow_id='0000450-151026183415051-oozie-oozi-W', p_attempt=0) rename to partition (p_date='2015-10-25' ,p_workflow_id='0000450-151026183415051-oozie-oozi-W', p_attempt=0);" which is yielding error "FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to rename partition."&lt;/P&gt;&lt;P&gt;Hive version is Hive 0.13.0.2.1.3.0-563&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2015 22:15:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101050#M13803</guid>
      <dc:creator>nilesh_shrimant</dc:creator>
      <dc:date>2015-12-30T22:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename partition value in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101051#M13804</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1179/nileshshrimant.html"&gt;Nilesh Shrimant&lt;/A&gt; There is an issue with renaming partitions in hive 0.13 which is fixed in hive 0.14 I guess.&lt;/P&gt;&lt;P&gt;Possible workaround - &lt;/P&gt;&lt;P&gt;Setting fs.hdfs.impl.disable.cache=false and fs.file.impl.disable.cache=false&lt;/P&gt;&lt;P&gt;Refer &lt;A href="https://issues.apache.org/jira/browse/HIVE-7623"&gt;https://issues.apache.org/jira/browse/HIVE-7623&lt;/A&gt; for more details.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2015 00:45:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101051#M13804</guid>
      <dc:creator>GeeKay2015</dc:creator>
      <dc:date>2015-12-31T00:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename partition value in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101052#M13805</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1179/nileshshrimant.html" nodeid="1179"&gt;@Nilesh Shrimant&lt;/A&gt; has this been resolved? Can you post your solution or accept the best answer?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 10:42:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101052#M13805</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename partition value in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101053#M13806</link>
      <description>&lt;P&gt;As @&lt;A href="https://community.hortonworks.com/users/971/gkadam2011.html"&gt;Gangadhar Kadam&lt;/A&gt; said it has problem in 0.13 but works fine in 0.14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:01:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101053#M13806</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2016-02-03T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename partition value in Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101054#M13807</link>
      <description>&lt;P&gt;@Gangadhar Kadam , thanks for the suggestion, but we circumvent the problem in an unethical way. We took table backup and then renamed partitions in Hive warehouse and then ran msck repair table command. It created new partitions in Hive which were renamed and then we created directories with old partition names and dropped them with drop partition command deleting metastore entry. &lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:04:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-rename-partition-value-in-Hive/m-p/101054#M13807</guid>
      <dc:creator>nilesh_shrimant</dc:creator>
      <dc:date>2016-02-04T18:04:38Z</dc:date>
    </item>
  </channel>
</rss>

