Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1560

Waiting for ndbcluster to start (no replies)

$
0
0
I am using the NDB Cluster 7.1.5-1. I just can not create the sample database WORLD.

When I do show processlist, I found:

mysql> show processlist;
+----+-------------+----------------+------+---------+-------+---------------------------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+-------------+----------------+------+---------+-------+---------------------------------+------------------+
| 1 | system user | | NULL | Daemon | 15816 | Waiting for ndbcluster to start | NULL |
| 18 | root | mgmtnode:38755 | NULL | Query | 0 | NULL | show processlist |
+----+-------------+----------------+------+---------+-------+---------------------------------+------------------+
2 rows in set (0.00 sec)

Looking at the error log, I found:

100818 16:06:03 [ERROR] NDB: CREATE TABLE IF NOT EXISTS mysql.ndb_apply_status ( server_id INT UNSIGNED NOT NULL, epoch BIGINT UNSIGNED NOT NULL, log_name VARCHAR(255) BINARY NOT NULL, start_pos BIGINT UNSIGNED NOT NULL, end_pos BIGINT UNSIGNED NOT NULL, PRIMARY KEY USING HASH (server_id) ) ENGINE=NDB CHARACTER SET latin1: error Can't create table 'mysql.ndb_apply_status' (errno: 157) 1005(ndb: 0) 1 1

Can some one tell me what is wrong with my installation ? I notice that althoug I have 2 data nodes, but the show global status indicates that only 1 datanode is ready !!!!!!!!!


Here is my config:

/usr/mysql-cluster#> ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: 192.168.20.100:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.20.101 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0, Master)
id=3 @192.168.20.102 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.20.100 (mysql-5.1.47 ndb-7.1.5)

[mysqld(API)] 4 node(s)
id=4 @192.168.20.100 (mysql-5.1.47 ndb-7.1.5)
id=5 (not connected, accepting connect from any host)
id=6 @192.168.20.100 (mysql-5.1.47 ndb-7.1.5)
id=7 (not connected, accepting connect from any host)

And in mysql:
mysql> show global status like 'NDB%';
+--------------------------------+----------------+
| Variable_name | Value |
+--------------------------------+----------------+
| Ndb_cluster_node_id | 5 |
| Ndb_config_from_host | 192.168.20.100 |
| Ndb_config_from_port | 1186 |
| Ndb_number_of_data_nodes | 2 |
| Ndb_number_of_ready_data_nodes | 1 |
| Ndb_connect_count | 2 |
| Ndb_execute_count | 0 |

mysql> show engine ndb status;
+------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| Type | Name | Status |
+------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| ndbcluster | connection | cluster_node_id=5, connected_host=192.168.20.100, connected_port=1186, number_of_data_nodes=2, number_of_ready_data_nodes=1, connect_count=2 |
| ndbcluster | NdbTransaction | created=2, free=2, sizeof=224 |
| ndbcluster | NdbOperation | created=4, free=4, sizeof=756 |
| ndbcluster | NdbIndexScanOperation | created=0, free=0, sizeof=888 |
| ndbcluster | NdbIndexOperation | created=0, free=0, sizeof=760 |
| ndbcluster | NdbRecAttr | created=0, free=0, sizeof=64 |
| ndbcluster | NdbApiSignal | created=16, free=16, sizeof=136 |
| ndbcluster | NdbLabel | created=0, free=0, sizeof=196 |
| ndbcluster | NdbBranch | created=0, free=0, sizeof=24 |
| ndbcluster | NdbSubroutine | created=0, free=0, sizeof=68 |
| ndbcluster | NdbCall | created=0, free=0, sizeof=16 |
| ndbcluster | NdbBlob | created=0, free=0, sizeof=344 |
| ndbcluster | NdbReceiver | created=0, free=0, sizeof=92 |
| ndbcluster | NdbLockHandle | created=0, free=0, sizeof=32 |
| ndbcluster | binlog | latest_epoch=0, latest_trans_epoch=29832842838022, latest_received_binlog_epoch=0, latest_handled_binlog_epoch=0, latest_applied_binlog_epoch=0 |
+------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
15 rows in set (0.01 sec)

Viewing all articles
Browse latest Browse all 1560

Trending Articles