MySQL Forums
Forum List  »  NDB clusters

com.mysql.clusterj.ClusterJUserException: Failure getting NdbTable
Posted by: H B
Date: July 12, 2019 03:24AM

Hi,
I'm trying to read and write to ndb cluster Employee information. But receive this error.

Caused by: com.mysql.clusterj.ClusterJUserException: Failure getting NdbTable for class com.repository.model.Employee, table employee. Verify that the table is defined with ENGINE=NDB.
at com.mysql.clusterj.core.metadata.DomainTypeHandlerImpl.<init>(DomainTypeHandlerImpl.java:143) ~[clusterj-7.6.9.jar:na]
at com.mysql.clusterj.core.metadata.DomainTypeHandlerFactoryImpl.createDomainTypeHandler(DomainTypeHandlerFactoryImpl.java:83) ~[clusterj-7.6.9.jar:na]
at com.mysql.clusterj.core.SessionFactoryImpl.getDomainTypeHandler(SessionFactoryImpl.java:480) ~[clusterj-7.6.9.jar:na]
at com.mysql.clusterj.core.SessionImpl.getDomainTypeHandler(SessionImpl.java:1206) ~[clusterj-7.6.9.jar:na]
at com.mysql.clusterj.core.query.QueryBuilderImpl.createQueryDefinition(QueryBuilderImpl.java:43) ~[clusterj-7.6.9.jar:na]
at com.mysql.clusterj.core.query.QueryBuilderImpl.createQueryDefinition(QueryBuilderImpl.java:25) ~[clusterj-7.6.9.jar:na]


My table already has engine 'ndbcluster'.

Here is my configuration:
config.ini file
[ndb_mgmd]
hostname=localhost
datadir=c:\Users\user1\my_cluster\ndb_data
NodeId=1
[ndbd default]
noofreplicas=2
datadir=c:\Users\user1\my_cluster\ndb_data
[ndbd]
hostname=localhost
datadir=c:\Users\user1\my_cluster\ndb_data
NodeId=3
[ndbd]
hostname=localhost
datadir=c:\Users\user1\my_cluster\ndb_data
NodeId=4
[mysqld]
hostname=localhost
NodeId=50
[api]
hostname=localhost

my.cnf file
[mysqld]
ndbcluster
datadir=c:\\Users\\user1\\my_cluster\\mysqld_data
basedir==c:\\Users\\user1\\mysqlc
port=5000

ndb_mgm show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 @127.0.0.1 (mysql-5.7.26 ndb-7.5.14, Nodegroup: 0, *)
id=4 @127.0.0.1 (mysql-5.7.26 ndb-7.5.14, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @127.0.0.1 (mysql-5.7.26 ndb-7.5.14)

[mysqld(API)] 2 node(s)
id=50 @127.0.0.1 (mysql-5.7.26 ndb-7.5.14)
id=51 (not connected, accepting connect from localhost)

Any quess?



Edited 1 time(s). Last edit at 07/12/2019 03:26AM by H B.

Options: ReplyQuote


Subject
Views
Written By
Posted
com.mysql.clusterj.ClusterJUserException: Failure getting NdbTable
906
H B
July 12, 2019 03:24AM


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.