在HIVE中删除表时出错
问题描述:
使用DROP TABLE命令时发生错误,之后对所有其他命令抛出“FAILED:EXECUTION ERROR”。在HIVE中删除表时出错
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作为metastore,HIVE-1.2.2版本
答
我不知道哪里出了问题。所以我重新安装了Mysql(正如我正在练习)并将更新的Mysql连接器jar(mysql-connector-java-5.1.38.jar)复制到配置单元库路径。
现在工作正常。
**(1)** MANAGED/EXTERNAL在这里似乎没有关系。 **(2)**可能是MySQL连接器问题。 –
“$ HIVE_HOME/lib /”路径中的“mysql-connector-java-5.1.9.jar”。 – Venkat
我不知道,只是领先。 –