stratio / spark-mongodb   0.12.0

Apache License 2.0 Website GitHub

Spark library for easy MongoDB access

Scala versions: 2.11 2.10


Join the chat at

Spark-Mongodb is a library that allows the user to read/write data with Spark SQL from/into MongoDB collections.

If you are using this Data Source, feel free to briefly share your experience by Pull Request this file.


This library requires Apache Spark, Scala 2.10 or Scala 2.11, Casbah 2.8.X

Latest compatible versions####

spark-MongoDB Apache Spark MongoDB
0.12.x 2.0.0 3.0.x
0.10.x - 0.11.x 1.5.x 3.0.x
0.8.2 - 0.9.2 1.4.0 3.0.x
0.8.1 1.3.0 3.0.x
0.8.0 1.2.1 3.0.x

How to use Spark-MongoDB##

There also exists a [First Steps] ( document where we show some simple examples.


Licensed to STRATIO (C) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The STRATIO (C) licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.