hive:impossible to write to binary log since BINLOG_FORMAT = STATEMENT

一、报错

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.

二、解决方法

在mysql中,将BINLOG_FORMAT设置成MIXED即可.

SET GLOBAL BINLOG_FORMAT = MIXED;

猜你喜欢

转载自blog.csdn.net/qq_43494678/article/details/110497846