l1004t2009 2016-04-03 14:06 采纳率: 0%
浏览 3931

mysql cluster数据节点启不了

[root@NDB1 bin]# ./ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.
2016-04-03 06:33:35 [ndbd] ERROR -- Could not connect to management server, error: ''

MGM节点配置如下:
vi config.ini

[ndbd default]

NoOfReplicas=2
DataMemory=200M
IndexMemory=30M

[ndb_mgmd]
NodeId=1
hostname=192.168.137.102
datadir=/var/lib/mysql-cluster/_

[ndbd]
NodeId=2
hostname=192.168.137.101
datadir=/usr/local/mysql/data

[ndbd]
NodeId=3
hostname=192.168.137.103
datadir=/usr/local/mysql/data

[mysqld]
NodeId=4
hostname=192.168.137.104

[mysqld]
NodeId=5
hostname=192.168.137.105

[mysqld]
NodeId=6

MGM启动正常:
[root@MGM bin]# ./ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: localhost:1186

Cluster Configuration

[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 192.168.137.101)
id=3 (not connected, accepting connect from 192.168.137.103)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.137.102 (mysql-5.6.28 ndb-7.4.10)

[mysqld(API)] 3 node(s)
id=4 (not connected, accepting connect from 192.168.137.104)
id=5 (not connected, accepting connect from 192.168.137.105)
id=6 (not connected, accepting connect from any host)

但启动数据节点报错:
[root@NDB1 bin]# ./ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.
2016-04-03 06:33:35 [ndbd] ERROR -- Could not connect to management server, error: ''

在数据节点connect管理节点没有问题:
[root@NDB1 bin]# ./ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> connect 192.168.137.102
Connected to Management Server at: 192.168.137.102:1186
ndb_mgm> show

Cluster Configuration

[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 192.168.137.101)
id=3 (not connected, accepting connect from 192.168.137.103)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.137.102 (mysql-5.6.28 ndb-7.4.10)

[mysqld(API)] 3 node(s)
id=4 (not connected, accepting connect from 192.168.137.104)
id=5 (not connected, accepting connect from 192.168.137.105)
id=6 (not connected, accepting connect from any host)

  • 写回答

2条回答 默认 最新

  • l1004t2009 2016-04-03 14:10
    关注

    补充: 防火墙都是关闭的

    评论

报告相同问题?

悬赏问题

  • ¥15 slam rangenet++配置
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊