<?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 How to drop large number of tables from a schema using script in efficient and fast. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-drop-large-number-of-tables-from-a-schema-using/m-p/361420#M238581</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to drop around 5000 tables from a schema - schemaDB, am using below script, tableNameList list contains all the 5000 tables names which I need to drop from the schema, but as the loop calling beeline process each time for each drop, the process to drop all the 5000 tables is taking lot of time, do we have another option where we can acheive it fastly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for tableName in $(cat tableNameList)&lt;BR /&gt;do&lt;BR /&gt;beeline -u "jdbc:hive2://server1.com:10000/default;principal=hive/server1.com@.com;" -e "drop table schemaDB.$tableName" &amp;gt;&amp;gt; $drop.log&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks praKodi&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 15:55:26 GMT</pubDate>
    <dc:creator>prakodi</dc:creator>
    <dc:date>2023-01-16T15:55:26Z</dc:date>
  </channel>
</rss>

