hive安装的“we don't support retries at the client level问题

编程入门 行业动态 更新时间:2024-10-23 02:04:52

hive安装的“we don't <a href=https://www.elefans.com/category/jswz/34/1768979.html style=support retries at the client level问题"/>

hive安装的“we don't support retries at the client level问题

在配置hive环境时候,遇到如题问题,前提:已经将hive的元数据存在远程的mysql中,现在想要通过运行的hive端删除创建的相关表内容

使用如下命令:

    hive>drop table student;
结果出现错误:

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

经过一阵度娘后,说是mysql数据库字符集出现问题。

修改mysql的字符集
alter database hive character set latin1;
但是经过修改后仍然并未解决问题,想起之前再看视频讲解sqoop里面说到mysql-connctor版本可能存在问题,我是用的5.6版本的mysql,拷贝到hive/lib下面的也是

mysql-connector-java-5.6-bin.jar,奇怪, 后来找到一个mysql-connector-java-5.1.34-bin.jar版本的, 将前者替换,嘿,还果然奏效了。

hive> drop table people;
Moved: 'hdfs://ns1/user/hive/warehouse/people' to trash at: hdfs://ns1/user/hadoop/.Trash/Current
OK
Time taken: 2.606 seconds
恩,具体原因有待探究。

更多推荐

hive安装的“we don't support retries at the client level问题

本文发布于:2024-02-17 03:59:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1692559.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:support   hive   retries   level   client

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!