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

今天在做hive表分区的时候,执行以下语句


结果报这个错,

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.)

然后就想把这个表删掉,重建一次,执行了drop table p0_1,还是报了这个错。

一开始以为是数据库字符集的问题,又输入设置字符集的命令

alter database hive character set latin1;

依旧是那个错,最后查询百度,把hive下lib目录的mysql包换成了这个版本

For direct MetaStore DB connections, we don't support retries at the client level.)_第1张图片

然后,问题解决了。。

alter database hive character set latin1;

你可能感兴趣的:(For direct MetaStore DB connections, we don't support retries at the client level.))