立即注册 登录
About云-梭伦科技 返回首页

阿飞的个人空间 https://www.aboutyun.com/?3890 [收藏] [复制] [分享] [RSS]

日志

Cloudera 安装manager service遇到问题

已有 1033 次阅读2019-7-4 11:07 |系统分类:Cloudera系列


user cannot run ddl statements on the specified database attmpt to create and drop a table failed



原因:
原因:在mysql5.7中使用了 GTID模式,引入了GTID参数,如下所示

gtid_mode = ON
enforce_gtid_consistency = ON

enforce_gtid_consistency 强制GTID一致性, 启用后以下命令无法再使用
create table ... select ...

但是在hadoop在使用过程中,恰好使用了上述中的建表语句,所以导致了失败。

具体一点就是create table ... select ...在启用强制GTID后,其实是两个独立事件,不符合强一致性的规则,所以创建失败。



解决方法:暂时的解决方案为,由于环境并不是很重要,所以先把GTID模式停了;

gtid_mode = off
enforce_gtid_consistency = off

修改参数后,重新启动数据库。

其它解决方法:把create table ... select 分解为2个sql来进行,即可解决。





路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

关闭

推荐上一条 /2 下一条