cannal 启动异常(show master status‘ has an error pls check. you need (at least one of) the SUPER,REPLI)
异常信息:‘show master status’ has an error! pls check. you need (at least one of) the SUPER,REPLICATI
详细信息:
[destination = example , address = node03/192.168.8.120:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:example[com.alibaba.otter.canal.parse.exception.CanalParseException: command : ‘show master status’ has an error! pls check. you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation
可能的原因:
- 没有开启权限:
CREATE USER canal IDENTIFIED BY 'canal'; GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%' ;FLUSH PRIVILEGES;
2. 没有开启bin-log日志:
vim /etc/my.cnf
log-bin=/var/lib/mysql/mysql-bin # 开启 binlog
binlog-format=ROW # 选择 ROW 模式
server_id=1 # 配置 MySQL replaction 需要定义,不要和 canal 的 slaveId 重复
经过排查,小编都配置好了,很奇怪!后来发现是配置完之后,没有重启mysql服务,尴尬!!!
重启mysql 服务:
systemctl restart mysqld
再参看日志: 成功
cat example.log
cannal 启动异常(show master status‘ has an error pls check. you need (at least one of) the SUPER,REPLI)相关推荐
- show master status 时没有数据显示
环境: 系统:centos 7.0 (64位) yum安装的mysql数据库. 今天做mysql主从时,查看master日志时没有数据显示, mysql> show master status; ...
- docker启动异常 Failed to start docker.service: Connection timed out 解决
docker 启动异常 执行启动docker 命令后 出现下面 错误信息,于是重装了docker 还是出现下面错误 [root@root ~]# systemctl start docker Auth ...
- 【Linux】修改/etc/fstab时参数设错,导致启动异常,无法进入系统(已解决)
1.问题描述 在ubuntu14.04上设置自动挂载硬盘分区时,修改/etc/fstab时,将defaults错误写成default,导致启动异常,无法进入系统. 2.解决方法 1)ubuntu启动时 ...
- mysql 服务启动异常
mysql 服务启动异常 参考文章: (1)mysql 服务启动异常 (2)https://www.cnblogs.com/yanqingguo/p/10895389.html (3)https:// ...
- springboot启动异常java.lang.NoSuchFieldError: DEFAULT_INCOMPATIBLE_IMPROVEMENTS
springboot启动异常java.lang.NoSuchFieldError: DEFAULT_INCOMPATIBLE_IMPROVEMENTS 参考文章: (1)springboot启动异常j ...
- Struts2环境下Tomcat启动异常:Exception starting filter struts2,报了一个java.lang.ClassNotFoundException
Struts2环境下Tomcat启动异常:Exception starting filter struts2,报了一个java.lang.ClassNotFoundException 参考文章: (1 ...
- [异常笔记] zookeeper集群启动异常: Cannot open channel to 2 at election address ……
[异常笔记] zookeeper集群启动异常: Cannot open channel to 2 at election address -- 参考文章: (1)[异常笔记] zookeeper集群启 ...
- activemq启动异常
activemq启动异常 执行activemq启动命令start,输出正常提示信息,activemq.log日志也正常,但进程没有起来,没有其他任何异常信息: [root@jms2 bin]# ./a ...
- java mysql show status_Java 能不能执行mysql 中的show master status 命令
展开全部 详细参32313133353236313431303231363533e4b893e5b19e31333337376263考文章:http://www.yuanxingyuan.com/?i ...
最新文章
- 选什么地方,进多少商品,想开超市,这些必须了解
- spark on yarn参数: 任务优先级
- Linux C:管道的实现原理,命名管道
- flash咏鹅课件_咏鹅flash动画课件下载
- java线程——阻塞队列
- 免费linux 脚本,替换xshell,说一下一些免费的shell工具
- 封装的ini文件类。保存为unicode的。解决delphi xe的TiniFile保存后不为unicode的问题...
- 电脑突然显示只有C盘,其他磁盘不显示了----解决方法(很简单)
- DSP程序死机(跑飞)的一些情况-硬件原因
- 19年电赛B题巡线机器人走过的坑
- 干净下潜声阔的贝斯混音教程|我要为贝斯手讨个公道!让粉丝们都能听清楚贝斯声|MZD Studios
- delphi oracle 三层,delphi+Oracle做的三层结构的干部管理系统
- 策略模式——鸭子游戏
- 计算机安全模式无法启动,我的电脑安全模式可以进去,为什么不能正常起动呢?...
- excel表格打印每页都有表头_Excel怎么能让每一页都打印上相同的顶端和底端标题?...
- fuz--2128(最长子串)
- 地质勘查项目管理困难重重,需要专业软件来解决
- python代码画乌龟_python画乌龟
- Centos7安装并使用gcc编译器
- python读取excel画出饼状图_python操作Excel、openpyxl 之图表,折线图、饼图、柱状图等...
热门文章
- Mybatisplus argument type mismatch
- 一文多图搞定制作自己的VOC数据集+使用yolov4训练自己的数据集+封装video测试脚本(基于ubuntu)
- 计算机网络-字符编码的由来(为什么会有乱码,ASCII、Unicode、GBK和UTF-8字符编码区别)
- Elasticsearch5基于completion suggester实现提示词(类京东淘宝)
- Mt7628调试简记
- 记一次巨KD的中考维护历程
- Mysql 利用存储过程 实现单据号码(单号)生成器(万能版)
- 归纳偏置 (Inductive Bias)
- 电厂数字化进阶之路(三):时代的召唤
- wxpython pyqt_pyqt5教程-教程,PyQt5