cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Connecting Neo4j 3.5.6 DB within Spark Databricks for ML purpose

Hi everyone,
I try to connect my neo4j DB to community.cloud.databricks using library neo4j-contrib:neo4j-spark-connector:2.4.0-M6.
Spark config includes:
dbms.connector.http.listen_address 0.0.0.0:7687
dbms.connector.http.enabled true
$SPARK_HOME/bin/spark-shell --packages graphframes:graphframes:0.7.0-spark2.4-s_2.11 neo4j-contrib:neo4j-spark-connector:2.4.0-M6
org.neo4j.server.database.location data/graph.db
spark.databricks.delta.preview.enabled true
spark.neo4j.bolt.password 'neo4j'
spark.neo4j.bolt.user '****'
spark.neo4j.bolt.url bolt://localhost:7687

Setting of neo4j db includes:
dbms.connectors.default_listen_address=0.0.0.0
dbms.connector.bolt.tls_level=OPTIONAL

When I use http://localhost:7474 from my chrome browser I get a connection through bolt://localhost:7687 and it's work.

But I can not connect the DB to databricks to work with.

I get massages:
org.apache.spark.SparkException: Job aborted due to stage failure: Task 4 in stage 0.0 failed 1 times, most recent failure: Lost task 4.0 in stage 0.0 (TID 4, localhost, executor driver): org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Unable to connect to localhost:7687, ensure the database is running and that there is a working network connection to it.

The DB is running, and the port is free. I use Neo4j 3.5.6 and Windows 10 Pro 2018.

Do someone use Databricks for ML purpose or maybe something else could be more appropriate?

Thank you!

1 REPLY 1

sam_gijare
Graph Buddy