Skip to content

Commit 21c3308

Browse files
author
Chris Cho
authored
DOCSP-27847: configure with 2.12 artifact id (#152)
* DOCSP-27847: configure with 2.12 artifact id
1 parent 2c1926e commit 21c3308

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

snooty.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ toc_landing_pages = ["configuration"]
99
driver-short = "Spark Connector"
1010
driver-long = "MongoDB {+driver-short+}"
1111
current-version = "10.1.0"
12+
artifact-id-2-13 = "mongo-spark-connector_2.13"
13+
artifact-id-2-12 = "mongo-spark-connector_2.12"
1214
spark-core-version = "3.3.1"
1315
spark-sql-version = "3.3.1"
1416
scala-previous = "2.12"

source/includes/extracts-command-line.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ content: |
3939
4040
./bin/spark-shell --conf "spark.mongodb.read.connection.uri=mongodb://127.0.0.1/test.myCollection?readPreference=primaryPreferred" \
4141
--conf "spark.mongodb.write.connection.uri=mongodb://127.0.0.1/test.myCollection" \
42-
--packages org.mongodb.spark:mongo-spark-connector:{+current-version+}
42+
--packages org.mongodb.spark:{+artifact-id-2-12+}:{+current-version+}
4343
4444
.. include:: /includes/extracts/list-configuration-explanation.rst
4545
@@ -56,7 +56,7 @@ content: |
5656
5757
./bin/pyspark --conf "spark.mongodb.read.connection.uri=mongodb://127.0.0.1/test.myCollection?readPreference=primaryPreferred" \
5858
--conf "spark.mongodb.write.connection.uri=mongodb://127.0.0.1/test.myCollection" \
59-
--packages org.mongodb.spark:mongo-spark-connector:{+current-version+}
59+
--packages org.mongodb.spark:{+artifact-id-2-12+}:{+current-version+}
6060
6161
.. include:: /includes/extracts/list-configuration-explanation.rst
6262
@@ -73,7 +73,7 @@ content: |
7373
7474
./bin/sparkR --conf "spark.mongodb.read.connection.uri=mongodb://127.0.0.1/test.myCollection?readPreference=primaryPreferred" \
7575
--conf "spark.mongodb.write.connection.uri=mongodb://127.0.0.1/test.myCollection" \
76-
--packages org.mongodb.spark:mongo-spark-connector:{+current-version+}
76+
--packages org.mongodb.spark:{+artifact-id-2-12+}:{+current-version+}
7777
7878
.. include:: /includes/extracts/list-configuration-explanation.rst
7979
...

0 commit comments

Comments
 (0)