MySQL Forums
Forum List  »  NDB clusters

Connecting MySQL Cluster using ClusterJ
Posted by: Srinivasan Umapathy
Date: July 10, 2014 07:23AM

Hi all,

I'm using 2 data nodes and 2 SQL nodes in MySQL Cluster.

Also i'm planning to connect MySQL Cluster via ClusterJ to achieve high performance.

Running the java command from one of my SQL Node. Facing the following error when trying to execute the java file.

java -classpath /usr/local/mysql/share/java/clusterj-api-7.3.5.jar:. -Djava.library.path=/usr/local/mysql/lib Main
Exception in thread "main" com.mysql.clusterj.ClusterJFatalUserException: No instance for service com.mysql.clusterj.SessionFactoryService could be found. Make sure that there is a file META-INF/services/com.mysql.clusterj.SessionFactoryService in your class path naming the factory class.
at com.mysql.clusterj.ClusterJHelper.getServiceInstance(
at com.mysql.clusterj.ClusterJHelper.getSessionFactory(
at com.mysql.clusterj.ClusterJHelper.getSessionFactory(
at Main.main(
[root@localhost MySQLCluster]#

Also i tried to use the jpa but i couldn't find the jar in my server. I have installed mysql-cluster 7.3 version.

Am i missing anything here.

Options: ReplyQuote

Written By
Connecting MySQL Cluster using ClusterJ
July 10, 2014 07:23AM

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.