<?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: Failed to load metadata in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59770#M67820</link>
    <description>&lt;P&gt;Sometimes see the similar error during step 2) as well. Do i need to run invalidate after step 1?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 01:50:51 GMT</pubDate>
    <dc:creator>ponypony</dc:creator>
    <dc:date>2017-09-11T01:50:51Z</dc:date>
    <item>
      <title>Failed to load metadata</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59769#M67819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my table, I am regenerating for a partition, what i do is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) remove from hdfs&lt;/P&gt;&lt;P&gt;2) insert to the partition from my staging table&lt;/P&gt;&lt;P&gt;3) invalidate metadata on the table&lt;/P&gt;&lt;P&gt;4) compute incremental stat on the partition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from time to time, i see this on step 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: AnalysisException: Failed to load metadata for table: 'ABC'&lt;BR /&gt;CAUSED BY: TableLoadingException: Failed to load metadata for table: default.ABC. Running 'invalidate metadata default.&lt;SPAN&gt;ABC&lt;/SPAN&gt;' may resolve this problem.&lt;BR /&gt;CAUSED BY: MetaException: Object with id "" is managed by a different persistence manager&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shannon&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:13:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59769#M67819</guid>
      <dc:creator>ponypony</dc:creator>
      <dc:date>2022-09-16T12:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to load metadata</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59770#M67820</link>
      <description>&lt;P&gt;Sometimes see the similar error during step 2) as well. Do i need to run invalidate after step 1?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 01:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59770#M67820</guid>
      <dc:creator>ponypony</dc:creator>
      <dc:date>2017-09-11T01:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to load metadata</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59917#M67821</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Per documentation, you should be using the refresh command after modifying an impala table in the way that you have described (modifying the HDFS directly). The refresh command has been documented in the following link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-10-x/topics/impala_refresh.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-10-x/topics/impala_refresh.html&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You should execute a refresh command after removing the file from the HDFS. You do not need to execute the refresh command if you are adding a new partition in Impala, it is only needed if you are doing it via Hive or HDFS.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-load-metadata/m-p/59917#M67821</guid>
      <dc:creator>lmartin</dc:creator>
      <dc:date>2017-09-14T13:57:32Z</dc:date>
    </item>
  </channel>
</rss>

