Neo4j is a native graph database that leverages data relationships as first-class entities. You can connect a cluster in Databricks to a Neo4j cluster using the neo4j-spark-connector, which offers Spark APIs for RDD, DataFrame, GraphX and GraphFrames. The neo4j-spark-connector uses the binary Bolt protocol to transfer data to and from the Neo4j server.

Neo4j Configuration

Neo4j can be deployed on various cloud providers.

To deploy Neo4j on EC2 using a custom AMI follow this guide. For other options, please see the official Neo4j cloud deployment guide. This guide assumes Neo4j 3.2.2.

Make sure the Neo4j password has been changed from default (you should be prompted when you first access Neo4j) and modify conf/neo4j.conf to accept remote connections. For more information see Configuring Neo4j Connectors.

# conf/neo4j.conf

# Bolt connector

# HTTP Connector. There must be exactly one HTTP connector.

# HTTPS Connector. There can be zero or one HTTPS connectors.


If your Neo4J cluster is running in AWS and you’d like to use private IPs, see the VPC Peering guide.

Using neo4j-spark-connector & graphframes in Databricks