Skip to content

Commit 3238002

Browse files
authored
[DOCSP-26312] Micro-Batch Processing (#147)
* initial commit * fix constants * fixes * fixes * fix links * fix links * rw feedback * fixes * fixes * versions * fixes * fixes * fixes
1 parent 23c3cdb commit 3238002

File tree

5 files changed

+119
-106
lines changed

5 files changed

+119
-106
lines changed

config/redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/spark-connector
22
define: base https://www.mongodb.com/${prefix}
3-
define: versions v1.1 v2.0 v2.1 v2.2 v2.3 v2.4 v3.0 master
3+
define: versions v1.1 v2.0 v2.1 v2.2 v2.3 v2.4 v3.0 v10.0 v10.1 master
44

55
raw: ${prefix}/ -> ${base}/current/
66
raw: ${prefix}/configuration -> ${base}/current/configuration/

snooty.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]
66
toc_landing_pages = ["configuration"]
77

88
[constants]
9-
current-version = "10.0.5"
10-
spark-core-version = "3.0.2"
11-
spark-sql-version = "3.0.2"
12-
scala-version = "2.12"
13-
scala-version-full = "2.12.13"
9+
driver-short = "Spark Connector"
10+
driver-long = "MongoDB {+driver-short+}"
11+
current-version = "10.1.0"
12+
spark-core-version = "3.3.1"
13+
spark-sql-version = "3.3.1"
14+
scala-previous = "2.12"
15+
scala-previous-full = "2.12.13"
16+
scala-latest = "2.13"
17+
scala-latest-full = "2.13.10"
1418

1519
[substitutions]
1620
copy = "unicode:: U+000A9"

source/java/api.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,40 @@ Dependency Management
55

66
.. include:: /includes/scala-java-dependencies.rst
77

8-
The following excerpt is from a Maven ``pom.xml`` file:
8+
Beginning in version 3.2.0, Apache Spark supports both Scala {+scala-previous+} and {+scala-latest+}.
9+
Spark 3.1.3 and previous versions support only Scala {+scala-previous+}.
10+
To provide support for both Scala versions, version {+current-version+} of the Spark
11+
Connector produces two artifacts:
12+
13+
- ``org.mongodb.spark:mongo-spark-connector_{+scala-previous+}:{+current-version+}`` is
14+
compiled against Scala {+scala-previous+}, and supports Spark 3.1.x and above.
15+
- ``org.mongodb.spark:mongo-spark-connector_{+scala-latest+}:{+current-version+}`` is
16+
compiled against Scala {+scala-latest+}, and supports Spark 3.2.x and above.
17+
18+
.. important::
19+
20+
Use the Spark Connector artifact that's compatible with your
21+
versions of Scala and Spark.
22+
23+
The following excerpt from a Maven ``pom.xml`` file shows how to include dependencies
24+
compatible with Scala {+scala-previous+}:
925

1026
.. code-block:: xml
1127

1228
<dependencies>
1329
<dependency>
1430
<groupId>org.mongodb.spark</groupId>
15-
<artifactId>mongo-spark-connector</artifactId>
31+
<artifactId>mongo-spark-connector_{+scala-previous+}</artifactId>
1632
<version>{+current-version+}</version>
1733
</dependency>
1834
<dependency>
1935
<groupId>org.apache.spark</groupId>
20-
<artifactId>spark-core_{+scala-version+}</artifactId>
36+
<artifactId>spark-core_{+scala-previous+}</artifactId>
2137
<version>{+spark-core-version+}</version>
2238
</dependency>
2339
<dependency>
2440
<groupId>org.apache.spark</groupId>
25-
<artifactId>spark-sql_{+scala-version+}</artifactId>
41+
<artifactId>spark-sql_{+scala-previous+}</artifactId>
2642
<version>{+spark-sql-version+}</version>
2743
</dependency>
2844
</dependencies>

source/scala/api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ a `SBT <http://www.scala-sbt.org/documentation.html>`_ ``build.scala`` file:
4040

4141
.. code-block:: scala
4242

43-
scalaVersion := "{+scala-version-full+}",
43+
scalaVersion := "{+scala-previous+}",
4444
libraryDependencies ++= Seq(
4545
"org.mongodb.spark" %% "mongo-spark-connector" % "{+current-version+}",
4646
"org.apache.spark" %% "spark-core" % "{+spark-core-version+}",

0 commit comments

Comments
 (0)