<?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 export DDL's of all table's for a schema in Hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/361301#M238556</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98744"&gt;@prakodi&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 17:31:26 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-01-13T17:31:26Z</dc:date>
    <item>
      <title>How to export DDL's of all table's for a schema in Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/360964#M238473</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have any script to export all the DDL's of the table for a schema in Hive ? we have a schema name - staging_DB and its contains around 2000 tables, now we need to export all the DDL's of this tables to a txt file so that we can run this DDL's in another setup. Please suggest if we have any script or any easy way to do it, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- PK&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 15:53:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/360964#M238473</guid>
      <dc:creator>prakodi</dc:creator>
      <dc:date>2023-01-10T15:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to export DDL's of all table's for a schema in Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/360973#M238479</link>
      <description>&lt;P&gt;Hello Prakodi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do not have a specific script to export all the DDL's of the table for a schema in hive, however, what you are looking for could be solved with the command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SHOW CREATE TABLE &amp;lt;HIVE_Table_name&amp;gt;;&lt;/P&gt;&lt;P&gt;and you will have to put this in the shell script to retrieve all the table names first and then run show create table for all the tables of the schema.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a search online and found an external blog article doing the same. Please refer that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dwgeek.com/export-hive-table-ddl-syntax-and-shell-script-example.html/" target="_blank" rel="noopener"&gt;https://dwgeek.com/export-hive-table-ddl-syntax-and-shell-script-example.html/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if you have any questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Varun&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 17:25:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/360973#M238479</guid>
      <dc:creator>varunshinde88</dc:creator>
      <dc:date>2023-01-10T17:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export DDL's of all table's for a schema in Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/361301#M238556</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98744"&gt;@prakodi&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 17:31:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-export-DDL-s-of-all-table-s-for-a-schema-in-Hive/m-p/361301#M238556</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-01-13T17:31:26Z</dc:date>
    </item>
  </channel>
</rss>

