使用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>
如果我使用“退出”,它将正常工作。并从头开始,直到“DROP TABLE”,然后再次相同。
**注意:表是MANAGED TABLE,使用MySql作为元存储,HIVE-1.2.2版本
最佳答案
我不知道出了什么问题。所以我重新安装了Mysql(在我的练习中),然后将更新的Mysql连接器jar(mysql-connector-java-5.1.38.jar)复制到配置单元lib路径。
现在工作正常。
关于hadoop - 在HIVE中删除表格时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46190354/