<?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: Drop database functionality on HDP 2.5.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132534#M43595</link>
    <description>&lt;P&gt;Thanks for validating that, &lt;A rel="user" href="https://community.cloudera.com/users/355/bhagan.html" nodeid="355"&gt;@bhagan&lt;/A&gt;.
Any idea why 'drop database' would be failing for me? I have concurrency enabled, but I'm not sure that matters.
I haven't found this error message elsewhere on the internet, but it appears to be the case that it is attempting to use a transactional table, even though I have transactions turned off. Who is even responsible for creating these tables? Are they created even when transactions are turned off?

Thanks,

Ali Anwar&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2016 00:59:06 GMT</pubDate>
    <dc:creator>ali1</dc:creator>
    <dc:date>2016-10-18T00:59:06Z</dc:date>
    <item>
      <title>Drop database functionality on HDP 2.5.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132532#M43593</link>
      <description>&lt;P&gt;I'm trying out Hive 1.2.1 on HDP 2.5.0, without Hive transactions.
I'm able to create a Hive database, but not able to drop it. I get the error pasted below.
I suspect it is due to &lt;A href="https://issues.apache.org/jira/browse/HIVE-10632"&gt;HIVE-10632&lt;/A&gt; being cherry-picked from Hive 1.3 to Hive 1.2 (&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_release-notes/content/patch_hive.html"&gt;source&lt;/A&gt;).

Has anyone successfully dropped a database on HDP 2.5.0?
I've not run into this issue with previous versions of HDP (such as HDP 2.1, 2.2, 2.3, 2.4).

&lt;/P&gt;&lt;PRE&gt;MetaException(message:Unable to clean up com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'hive.TXN_COMPONENTS' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.Util.getInstance(Util.java:386)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619)
        at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1709)
        at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1628)
        at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228)
        at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228)
        at org.apache.hadoop.hive.metastore.txn.TxnHandler.cleanupRecords(TxnHandler.java:1747)
        at org.apache.hadoop.hive.metastore.AcidEventListener.onDropDatabase(AcidEventListener.java:51)
        at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.drop_database_core(HiveMetaStore.java:1183)
        at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.drop_database(HiveMetaStore.java:1215)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:139)
        at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:97)
        at com.sun.proxy.$Proxy14.drop_database(Unknown Source)
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$drop_database.getResult(ThriftHiveMetastore.java:8989)
        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$drop_database.getResult(ThriftHiveMetastore.java:8973)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:110)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
        at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:118)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
)
        at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:335)
        at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:199)
        at org.apache.hive.service.cli.operation.SQLOperation.access$300(SQLOperation.java:76)
        at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:253)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
        at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:264)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Oct 2016 08:42:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132532#M43593</guid>
      <dc:creator>ali1</dc:creator>
      <dc:date>2016-10-15T08:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Drop database functionality on HDP 2.5.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132533#M43594</link>
      <description>&lt;P&gt;I'm using the HDP Sandbox 2.5 that includes Hive 1.2.1.2.5. I made sure that transactions are off. Using the Hive View, I just created and dropped a test database.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:01:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132533#M43594</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-10-18T00:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Drop database functionality on HDP 2.5.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132534#M43595</link>
      <description>&lt;P&gt;Thanks for validating that, &lt;A rel="user" href="https://community.cloudera.com/users/355/bhagan.html" nodeid="355"&gt;@bhagan&lt;/A&gt;.
Any idea why 'drop database' would be failing for me? I have concurrency enabled, but I'm not sure that matters.
I haven't found this error message elsewhere on the internet, but it appears to be the case that it is attempting to use a transactional table, even though I have transactions turned off. Who is even responsible for creating these tables? Are they created even when transactions are turned off?

Thanks,

Ali Anwar&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:59:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132534#M43595</guid>
      <dc:creator>ali1</dc:creator>
      <dc:date>2016-10-18T00:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Drop database functionality on HDP 2.5.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132535#M43596</link>
      <description>&lt;P&gt;Ali, in my Sandbox, I have concurrency set to true.&lt;/P&gt;&lt;P&gt;My understanding is that the transaction tables are created during hive installation even if transactions are not configured to be on.&lt;/P&gt;&lt;P&gt;For curiosity, I'm wondering how you installed Hive. And I'm wondering if you could take a look at Hive's table listing to see if the table doesn't exist and if other transaction tables don't exist. If some are missing, there could have been an issue during installation.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 21:14:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132535#M43596</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-10-18T21:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Drop database functionality on HDP 2.5.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132536#M43597</link>
      <description>&lt;P&gt;I haven't confirmed it completely, but very likely, my issue is an installation issue.
Thanks for responding.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:49:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Drop-database-functionality-on-HDP-2-5-0/m-p/132536#M43597</guid>
      <dc:creator>ali1</dc:creator>
      <dc:date>2016-10-19T01:49:32Z</dc:date>
    </item>
  </channel>
</rss>

