MySQL Forums
Forum List  »  NDB clusters

Failed to get s session to MySQL cluster
Posted by: Lu Boying
Date: July 02, 2014 02:26AM

Hi experts,

I'm new to MySQL, I want to use ClusterJ to access database in MySQL cluster.

I got the following error when I tried to get a session from cluster:
Exception in thread "main" com.mysql.clusterj.ClusterJFatalUserException: Error getting connection to cluster with properties {com.mysql.clusterj.connectstring=127.0.0.1:1186, com.mysql.clusterj.database=geodb}:
Caused by com.mysql.clusterj.ClusterJDatastoreException:Datastore exception on connectString '127.0.0.1:1186' nodeId 0; Return code: -1 error code: 1,101 message: Error: Could not alloc node id at 127.0.0.1 port 1186: No free node id found for mysqld(API)..
at com.mysql.clusterj.core.SessionFactoryImpl.createClusterConnection(SessionFactoryImpl.java:252)
at com.mysql.clusterj.core.SessionFactoryImpl.createClusterConnectionPool(SessionFactoryImpl.java:226)
at com.mysql.clusterj.core.SessionFactoryImpl.<init>(SessionFactoryImpl.java:174)
at com.mysql.clusterj.core.SessionFactoryImpl.getSessionFactory(SessionFactoryImpl.java:129)
at com.mysql.clusterj.core.SessionFactoryServiceImpl.getSessionFactory(SessionFactoryServiceImpl.java:36)
at com.mysql.clusterj.core.SessionFactoryServiceImpl.getSessionFactory(SessionFactoryServiceImpl.java:27)
at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:69)
at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:54)

I found the http://forums.mysql.com/read.php?25,518259,518358#msg-518358 maybe related to this. But I don't know how to resolve this issue.

Can someone tell me how to resolve this issue? e.g. some example?

Thanks a lot.

Options: ReplyQuote


Subject
Views
Written By
Posted
Failed to get s session to MySQL cluster
1631
July 02, 2014 02:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.