Docs Menu

MongoDB Connector for Spark

The MongoDB Connector for Spark provides integration between MongoDB and Apache Spark.

With the connector, you have access to all Spark libraries for use with MongoDB datasets: Datasets for analysis with SQL (benefiting from automatic schema inference), streaming, machine learning, and graph APIs. You can also use the connector with the Spark Shell.

The MongoDB Connector for Spark is compatible with the following versions of Apache Spark and MongoDB:

MongoDB Connector for Spark
Spark Version
MongoDB Version
3.0.1
3.0.x, 3.1.x
2.6 or later
2.4.3
2.4.x
2.6 or later
2.3.5
2.3.x
2.6 or later
2.2.9
2.2.x
2.6 or later
2.1.8
2.1.x
2.6 or later
2.0.0
2.0.x
2.6 or later
1.1.0
1.6.x
2.6 or later

Note
Announcements
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.

About

  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.