For direct MetaStore DB connections, we don't support retries at the client level.

(都是自己踩过的坑,如有不当之处,欢迎指正)

在hive中操作的时候,可以创建表,插入字段,但是不能删除表,报错如下图所示:

For direct MetaStore DB connections, we don't support retries at the client level.

查看hive日志发现是hive连接mysql的驱动有问题

For direct MetaStore DB connections, we don't support retries at the client level.

mysql使用的是5.6.27版本,mysql驱动使用的是mysql-connector-java-5.1.17.jar,将mysql-connector-java-5.1.17.jar替换为mysql-connector-java-5.1.47.jar之后,可以正常删除表。

For direct MetaStore DB connections, we don't support retries at the client level.