Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Shutdown HiveMetaStore on client disconnect or timeout

Shutdown HiveMetaStore on client disconnect or timeout

Contributor

I facing issue when user either trying to disconnect or got timeout, the Hive Meta Store got shutdown.

3 REPLIES 3

Re: Shutdown HiveMetaStore on client disconnect or timeout

Can you please explain bit more? also kindly share some logs and steps you executed to reproduce this issue.

Re: Shutdown HiveMetaStore on client disconnect or timeout

Contributor

Mainly the HiveMetaStore shutdown happens when we tried to drop the table.

Highlighted

Re: Shutdown HiveMetaStore on client disconnect or timeout

Contributor

This is the log I am getting:

2016-03-21 18:21:38,081 ERROR [HiveServer2-Background-Pool: Thread-449]: exec.DDLTask (DDLTask.java:failed(521)) - org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.reflect.UndeclaredThrowableException at org.apache.hadoop.hive.ql.metadata.Hive.getAllDatabases(Hive.java:1239) at org.apache.hadoop.hive.ql.exec.DDLTask.showDatabases(DDLTask.java:2258) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:386) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:89) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1703) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1460) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1237) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1101) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1096) at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:154) at org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:71) at org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:206) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:218) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy9.getAllDatabases(Unknown Source) at org.apache.hadoop.hive.ql.metadata.Hive.getAllDatabases(Hive.java:1237) ... 21 more Caused by: java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:186) ... 23 more