在蜂巢中放下表格时出错



在使用drop table命令时,它在所有其他命令中投掷"失败:执行错误"。

hive> show databases;
OK
default
practice_db
Time taken: 1.305 seconds, Fetched: 2 row(s)
hive> use default;
OK
Time taken: 0.045 seconds
hive> show tables;
OK
tsunami_deathtoll
tsunami_hightoll
tsunami_japan
Time taken: 0.039 seconds, Fetched: 3 row(s)
hive> drop table tsunami_Japan;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
hive> show tables;
FAILED: SemanticException [Error 10072]: Database does not exist: default
hive> show databases;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
hive> 

,如果我使用"退出",它将正常工作;从头开始,直到"下降表",然后再相同。**注意:表是托管表,使用mysql作为metastore,hive-1.2.2版本

我不知道出了什么问题。因此,我重新安装了MySQL(当我正在练习时)并复制了MySQL连接器jar(mysql-connector-java-5.1.38.jar)到hive lib路径。

现在正常工作。

最新更新