Hi,
We are just starting to evaluate MySQL Cluster. We have the management node on 1186 and the mysqld node on port 5000.
Whenever I try to connect I get this:
com.mysql.clusterj.ClusterJFatalUserException: Error getting connection to cluster with properties {com.mysql.clusterj.database=msdp_cache, com.mysql.clusterj.timeout.after=20, com.mysql.clusterj.max.transactions=1024, com.mysql.clusterj.connect.verbose=1, com.mysql.clusterj.timeout.before=30, com.mysql.clusterj.connect.delay=5, com.mysql.clusterj.connect.retries=4, com.mysql.clusterj.connectstring=localhost:1186}:
Caused by com.mysql.clusterj.ClusterJDatastoreException:Datastore exception on connectString 'localhost:1186' nodeId 0; Return code: -1 error code: 1,101 message: Error: Could not alloc node id at localhost port 1186: No free node id found for mysqld(API)..
I am able to successfully connect via commandline mysql to the mysqld node running on port 5000.
We are on Debian, 64-bit. JDK 1.6.0_30.
Here is my simple code:
Map<String,String> props = Maps.newHashMap();
props.put("com.mysql.clusterj.connectstring", "localhost:1186");
props.put("com.mysql.clusterj.database","msdp_cache");
props.put("com.mysql.clusterj.connect.retries","4");
props.put("com.mysql.clusterj.connect.delay","5");
props.put("com.mysql.clusterj.connect.verbose","1");
props.put("com.mysql.clusterj.timeout.before","30");
props.put("com.mysql.clusterj.timeout.after","20");
props.put("com.mysql.clusterj.max.transactions","1024");
sf = ClusterJHelper.getSessionFactory(props);
These are our first baby steps with this product, so please forgive me if I missed something obvious.
Thank you
Jacek
P.S. we do have -Djava.library.path pointing to the proper 5.5 lib folder.
We are just starting to evaluate MySQL Cluster. We have the management node on 1186 and the mysqld node on port 5000.
Whenever I try to connect I get this:
com.mysql.clusterj.ClusterJFatalUserException: Error getting connection to cluster with properties {com.mysql.clusterj.database=msdp_cache, com.mysql.clusterj.timeout.after=20, com.mysql.clusterj.max.transactions=1024, com.mysql.clusterj.connect.verbose=1, com.mysql.clusterj.timeout.before=30, com.mysql.clusterj.connect.delay=5, com.mysql.clusterj.connect.retries=4, com.mysql.clusterj.connectstring=localhost:1186}:
Caused by com.mysql.clusterj.ClusterJDatastoreException:Datastore exception on connectString 'localhost:1186' nodeId 0; Return code: -1 error code: 1,101 message: Error: Could not alloc node id at localhost port 1186: No free node id found for mysqld(API)..
I am able to successfully connect via commandline mysql to the mysqld node running on port 5000.
We are on Debian, 64-bit. JDK 1.6.0_30.
Here is my simple code:
Map<String,String> props = Maps.newHashMap();
props.put("com.mysql.clusterj.connectstring", "localhost:1186");
props.put("com.mysql.clusterj.database","msdp_cache");
props.put("com.mysql.clusterj.connect.retries","4");
props.put("com.mysql.clusterj.connect.delay","5");
props.put("com.mysql.clusterj.connect.verbose","1");
props.put("com.mysql.clusterj.timeout.before","30");
props.put("com.mysql.clusterj.timeout.after","20");
props.put("com.mysql.clusterj.max.transactions","1024");
sf = ClusterJHelper.getSessionFactory(props);
These are our first baby steps with this product, so please forgive me if I missed something obvious.
Thank you
Jacek
P.S. we do have -Djava.library.path pointing to the proper 5.5 lib folder.