Neo4J Cluster - Bolt + Routing -




neo4j document says can use bolt + routing when using cluster mode/setup. able use single node bolt connection without issue if use cluster mode/setup gives me following error.

caused by: org.neo4j.driver.v1.exceptions.clientexception: 'bolt+routing' not supported transport (in 'bolt+routing://username:password@server.com:7687', available transports are: [bolt].

in cluster mode if use
bolt+routing://username:password@server.com:7687
getting notaleader error below

config.neo4jconfiguration: intercepted exception exception in thread "main" org.neo4j.ogm.exception.cypherexception: error executing cypher: neo.clienterror.cluster.notaleader @ org.neo4j.ogm.drivers.bolt.transaction.bolttransaction.commit(bolttransaction.java:75)

note: using spring data neo4j application

the document says, "the address in uri must of core server." can set cluster member core configuration in neo4j.conf:

dbms.mode=core 

and in browser can check member roles:

call dbms.cluster.role() 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -