公司服务器,当启动Hive的时候报错:

收藏
hive
6
Feb 1, 2018

 

公司服务器,当启动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';

 

(0)

提交成功