hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16678) Truncate on temporary table fails with "table not found" error.
Date Tue, 16 May 2017 12:47:04 GMT

    [ https://issues.apache.org/jira/browse/HIVE-16678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16012272#comment-16012272
] 

ASF GitHub Bot commented on HIVE-16678:
---------------------------------------

GitHub user sankarh opened a pull request:

    https://github.com/apache/hive/pull/184

    HIVE-16678: Truncate on temporary table fails with table not found error.

    Truncate table on temp table.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sankarh/hive HIVE-16678

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hive/pull/184.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #184
    
----
commit 56e4d6c78eb623b36d77e668b59bcc3917c6d822
Author: Sankar Hariappan <mailtosankarh@gmail.com>
Date:   2017-05-16T12:01:12Z

    HIVE-16678: Truncate on temporary table fails with table not found error.

----


> Truncate on temporary table fails with "table not found" error.
> ---------------------------------------------------------------
>
>                 Key: HIVE-16678
>                 URL: https://issues.apache.org/jira/browse/HIVE-16678
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, HiveServer2
>    Affects Versions: 3.0.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>              Labels: HiveMetaStoreClient, HiveServer2
>         Attachments: HIVE-16678.01.patch
>
>
> Queries:
> create temporary table s10k as select * from studenttab10k;
> truncate table s10k;
> Truncate table query on temporary table failing with error:
> Error: Error while processing statement: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask. Exception while processing (state=08S01,code=1)
> From hsi logs:
> {noformat}
> NoSuchObjectException(message:default.s10k table not found)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_table_core(HiveMetaStore.java:2118)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.truncate_table(HiveMetaStore.java:2008)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:148)
> 	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:107)
> 	at com.sun.proxy.$Proxy31.truncate_table(Unknown Source)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.truncateTable(HiveMetaStoreClient.java:1115)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:173)
> 	at com.sun.proxy.$Proxy32.truncateTable(Unknown Source)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient$SynchronizedHandler.invoke(HiveMetaStoreClient.java:2306)
> 	at com.sun.proxy.$Proxy32.truncateTable(Unknown Source)
> 	at org.apache.hadoop.hive.ql.metadata.Hive.truncateTable(Hive.java:1217)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.truncateTable(DDLTask.java:4462)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:556)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:197)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1905)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1607)
> 	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1354)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1123)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1116)
> 	at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:242)
> 	at org.apache.hive.service.cli.operation.SQLOperation.access$800(SQLOperation.java:91)
> 	at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:334)
> 	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:1866)
> 	at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:348)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message