mysql集群sql节点连不上数据节点

a33244 2017-04-28 09:38:07
最近在试着搭建mysql cluster玩玩,但是遇到一个问题其中一个sql节点连接不上的问题,使用命令查看cluster状态可以看到如下所示。
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.146.131 (mysql-5.7.18 ndb-7.5.6, Nodegroup: 0, *)
id=3 @192.168.146.132 (mysql-5.7.18 ndb-7.5.6, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.146.129 (mysql-5.7.18 ndb-7.5.6)

[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from 192.168.146.131)
id=5 @192.168.146.132 (mysql-5.7.18 ndb-7.5.6)

在节点4的日志中,可以看到如下警告日志
2017-04-28T12:56:38.793749Z 0 [Warning] NDB : Tables not available after 30 seconds. Consider increasing --ndb-wait-setup value
2017-04-28T12:56:38.793774Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
2017-04-28T12:56:38.793777Z 0 [Note] Beginning of list of non-natively partitioned tables
2017-04-28T12:56:38.805451Z 4 [Warning] NDB: Failed to acquire global schema lock, error: (4009)Cluster Failure
2017-04-28T12:56:38.995654Z 4 [Warning] NDB: Failed to acquire global schema lock, error: (4009)Cluster Failure
2017-04-28T12:56:39.573754Z 4 [Warning] NDB: Failed to acquire global schema lock, error: (4009)Cluster Failure
2017-04-28T12:56:39.611802Z 4 [Warning] NDB: Failed to acquire global schema lock, error: (4009)Cluster Failure
管理节点中可以看到如下日志
2017-04-28 05:55:36 [MgmtSrvr] INFO -- Alloc node id 4 succeeded
2017-04-28 05:55:36 [MgmtSrvr] INFO -- Nodeid 4 allocated for API at 192.168.146.131
2017-04-28 05:55:36 [MgmtSrvr] INFO -- Node 4: mysqld --server-id=0
2017-04-28 05:55:56 [MgmtSrvr] WARNING -- Node 2: Releasing node id allocation for node 4

我的系统是centos7防火墙也关了,但是其中一个节点就是连接不上,麻烦大哥大姐们看看吧,小弟在此先谢过了,为了这个问题都已经搞了一周了,实在是没办法。
...全文
654 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhfeng715 2017-08-16
  • 打赏
  • 举报
回复 1
楼主,请问这个问题解决了吗?碰到同样的问题了,迷茫中

56,675

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧