Hive DDL报错For direct MetaStore DB connections, we don’t support retries at the client level.

编程入门 行业动态 更新时间:2024-10-22 23:46:30

Hive DDL<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错For direct MetaStore DB connections, we don’t support retries at the client level."/>

Hive DDL报错For direct MetaStore DB connections, we don’t support retries at the client level.

当在Hive中创建表的时候报错:

create table test(name string, addrstring) row format delimited fields terminated by '\t';
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的字符集:

在MySql中执行(注意将mysql的数据库修改为自己的):

alter database hive character set latin1;

当启动Hive的时候报错:

Caused by: javax.jdo.JDOException: Couldnt obtain a new sequence (unique id) : Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
NestedThrowables:
java.sql.SQLException: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.

这个问题是由于hive的元数据存储MySQL配置不当引起的,可以这样解决:

在MySql中执行:

 set global binlog_format='MIXED';

问题解决!

更多推荐

Hive DDL报错For direct MetaStore DB connections, we don’t support retries at the c

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

发布评论

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

>www.elefans.com

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