<?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 Table copy from Prod to QA . in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413737#M254217</link>
    <description>&lt;P&gt;can someone share the exact steps&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2026 20:33:04 GMT</pubDate>
    <dc:creator>mohammad_shamim</dc:creator>
    <dc:date>2026-03-18T20:33:04Z</dc:date>
    <item>
      <title>Hive Table copy from Prod to QA .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413701#M254197</link>
      <description>&lt;P&gt;I have copied hive table from Prod to QA by using get and put command but while executing select counnt (*) is it showing 0 count but i can see physical location is having data however i have checked all permission are in place so i did invalidate metadata and table refresh and msck repiare but still facing same issue. can seomeone help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 10:24:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413701#M254197</guid>
      <dc:creator>mohammad_shamim</dc:creator>
      <dc:date>2026-03-11T10:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Table copy from Prod to QA .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413703#M254199</link>
      <description>&lt;P&gt;Thanks for asking your question&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59086"&gt;@mohammad_shamim&lt;/a&gt;.&amp;nbsp;While you await someone more technical to reply, may I suggest providing a little more detail into the steps taken, table information (format, external?, etc) and the permissions in place that led to the issue?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 12:42:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413703#M254199</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2026-03-11T12:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Table copy from Prod to QA .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413729#M254211</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59086"&gt;@mohammad_shamim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing your question. Before provide an answer, can you please confirm if this is a MANAGED or EXTERNAL table?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on this info I will let you know all the details or next steps to see if is possible to show the data in the table.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 20:13:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413729#M254211</guid>
      <dc:creator>JPC</dc:creator>
      <dc:date>2026-03-17T20:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Table copy from Prod to QA .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413730#M254212</link>
      <description>&lt;P&gt;Managed.. I have shared table structure in the same chain.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 20:41:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413730#M254212</guid>
      <dc:creator>mohammad_shamim</dc:creator>
      <dc:date>2026-03-17T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Table copy from Prod to QA .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413737#M254217</link>
      <description>&lt;P&gt;can someone share the exact steps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 20:33:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413737#M254217</guid>
      <dc:creator>mohammad_shamim</dc:creator>
      <dc:date>2026-03-18T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Table copy from Prod to QA .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413770#M254229</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59086"&gt;@mohammad_shamim&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;You cannot copy a managed(ACID) table using HDFS GET/PUT commands because there are writeIDs associated with ACID tables, and if that information is missing in HMS, you will not be able to read the data files.&lt;BR /&gt;&lt;BR /&gt;Here is the supported way to copy/move a managed table:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1. Create an external table first, on top of the new HDFS path:

CREATE EXTERNAL TABLE ext_source_table (
    col1    INT,
    col2    STRING,
    col3    DOUBLE,
    col4    DATE
)
STORED AS ORC
LOCATION '[HDFS PATH]';

2. PERFORM MSCK REAPAIR on the External table and see if you can read it.

MSCK REPAIR ext_source_table;

3. Use CREATE TABLE AS SELECT command to create teh target Managed ACID table from that external table.

e.g

CREATE TABLE target_managed_table
AS
SELECT * FROM ext_source_table;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 07:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Table-copy-from-Prod-to-QA/m-p/413770#M254229</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2026-03-24T07:38:25Z</dc:date>
    </item>
  </channel>
</rss>

