使用create table命令创建表失败,如下错误信息:

hive> create table test(id int,name string,age int,sex string);
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Could not create "increment"/"table" value-generation container `SEQUENCE_TABLE` since autoCreate flags do not allow it. )

 

原因:

元数据库mysql中变量binlog_format的值为STATEMENT。

hive中创建表失败

解决方法 :

修改binlog_format的默认值,

在mysql的配置文件/etc/my.cnf中添加 binlog_format="MIXED" ,重启mysql,再启动 hive即可。

hive中创建表失败

hive中创建表失败

 

再次创建表如下:

hive中创建表失败

 

相关文章:

  • 2021-07-08
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-07-15
  • 2021-05-16
猜你喜欢
  • 2021-10-06
  • 2021-11-09
  • 2021-06-29
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案