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

Connecting MySQL Cluster using ClusterJ (no replies)

$
0
0
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(ClusterJHelper.java:157)
at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:67)
at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:54)
at Main.main(Main.java:32)
[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.

Viewing all articles
Browse latest Browse all 1560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>