簡體   English   中英

在 HIVE 中刪除表時出錯

[英]Error while dropping table in HIVE

使用 DROP TABLE 命令時出錯,之后它為所有其他命令拋出“FAILED: EXECUTION ERROR”。

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> 

如果我使用“quit;”,它會正常工作。 並從頭開始直到“DROP TABLE”並再次相同.. **注意:表是管理表,使用MySql作為Metastore,HIVE-1.2.2版本

我不知道出了什么問題。 所以我重新安裝了 Mysql(我正在練習)並將更新的 Mysql 連接器 jar(mysql-connector-java-5.1.38.jar)復制到 hive lib 路徑。

現在工作正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM