hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haimei Li (JIRA)" <>
Subject [jira] [Commented] (HIVE-7458) Drop Hive Table If Exists Throw out Error by Spark
Date Mon, 21 Jul 2014 13:50:39 GMT


Haimei Li commented on HIVE-7458:

thanks, i will report to Spark 

> Drop Hive Table If Exists Throw out Error by Spark
> --------------------------------------------------
>                 Key: HIVE-7458
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Spark
>         Environment: Spark(1.0.1), Hive(0.13.1)
>            Reporter: Haimei Li
>            Assignee: Damien Carol
> I have Hive, MySQL and Spark. MySQL is Hive metastore_db. I follow this guide to configurate
it (
It is ok for me to do drop table command under hive shell environment. But when I enter into
spark-shell env, I use hiveContext.hql("DROP TABLE IF EXISTS hivetesting"). And then, I get
following error:
> ERROR Hive: NoSuchObjectException(message:default.hivetesting table not found)
> at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_result$
> at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_table_result$
> at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$
> at org.apache.thrift.TServiceClient.receiveBase(
> at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_table(
> at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_table(
> at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTable(
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> at java.lang.reflect.Method.invoke(
> at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(
> at com.sun.proxy.$Proxy11.getTable(Unknown Source)
> at org.apache.hadoop.hive.ql.metadata.Hive.getTable(
> ......
> I think when running under hive shell, it mutes this error. But under spark shell, hive
doesn't mute this error and throw out error directly. So If the table doesn't exist, hive
should not throw out error; it should throw out warning.

This message was sent by Atlassian JIRA

View raw message