Skip to main content
Dependencies:
  • ProphecyWarehousePython 0.0.1+
  • ProphecyWarehouseScala 0.0.1+
Cluster requirements:
  • UC dedicated clusters not supported
  • UC standard clusters not supported
  • Livy clusters not supported
This gem uses the MongoDB Spark Connector v10.0. To add mongodb-spark-connector jar as a dependency, see Spark dependencies.
You can read from and write to MongoDB.

Parameters

Source

The Source gem reads data from MongoDB and allows you to optionally specify the following additional properties.

Source properties

Example

The following example configures a Source gem to read from the sample_airbnb.listingsAndReviews collection in MongoDB. After you configure the Source gem, view schema by clicking Infer Schema in the Properties tab and view data by clicking Load inside the Preview tab.

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.

Target

The Target gem writes data to MongoDB and allows you to optionally specify the following additional properties.

Target properties

Supported write modes

Example

The following example configures a Target gem to write data to the sample_airbnb.listingsAndReviews collection in MongoDB.

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.