neo4j-connector-apache-spark_2.12 (homepage)

Officially supported, Apache 2 licensend Neo4j Connector for Apache Spark.

The Neo4j Connector for Apache Spark is intended to make integrating graphs together with spark easy. There are effectively two ways of using the connector:

As a data source: read any set of nodes or relationships as a DataFrame in Spark
As a sink: write any DataFrame to Neo4j as a collection of nodes or relationships, or alternatively; use a Cypher statement to process records in a DataFrame into the graph pattern of your choice.

Because the connector is based on the new Spark DataSource API, other spark interpreters for languages such as Python and R will work.
The API remains the same, and mostly only slight syntax changes are necessary to accomodate the differences between (for example) Python and Scala.


Tags (No tags yet, login to add one. )


How to

Include this package in your Spark Applications using:

spark-shell, pyspark, or spark-submit

> $SPARK_HOME/bin/spark-shell --packages neo4j-contrib:neo4j-connector-apache-spark_2.12:4.0.0

sbt

If you use the sbt-spark-package plugin, in your sbt build file, add:

spDependencies += "neo4j-contrib/neo4j-connector-apache-spark_2.12:4.0.0"

Otherwise,

resolvers += "Spark Packages Repo" at "http://dl.bintray.com/spark-packages/maven"

libraryDependencies += "neo4j-contrib" % "neo4j-connector-apache-spark_2.12" % "4.0.0"

Maven

In your pom.xml, add:
<dependencies>
  <!-- list of dependencies -->
  <dependency>
    <groupId>neo4j-contrib</groupId>
    <artifactId>neo4j-connector-apache-spark_2.12</artifactId>
    <version>4.0.0</version>
  </dependency>
</dependencies>
<repositories>
  <!-- list of other repositories -->
  <repository>
    <id>SparkPackagesRepo</id>
    <url>http://dl.bintray.com/spark-packages/maven</url>
  </repository>
</repositories>

Releases

Version: 4.0.0 ( 7d4c4b | zip | jar ) / Date: 2020-11-11 / License: Apache-2.0