@@ -31,14 +31,14 @@ You can configure the following properties to read from MongoDB:
3131 * - Property name
3232 - Description
3333
34- * - ``uri``
34+ * - ``connection. uri``
3535 - **Required.**
3636 The connection string in the form
3737 ``mongodb://host:port/``. The ``host`` can be a hostname, IP
3838 address, or UNIX domain socket. If the connection string doesn't
3939 specify a ``port``, it uses the default MongoDB port, ``27017``.
4040
41- You can append the other remaining read options to the ``uri``
41+ You can append the other remaining read options to the ``connection. uri``
4242 setting. See :ref:`configure-input-uri`.
4343
4444 * - ``database``
@@ -342,13 +342,13 @@ Change Streams
342342
343343.. _configure-input-uri:
344344
345- ``uri`` Configuration Setting
346- -----------------------------
345+ ``connection. uri`` Configuration Setting
346+ ----------------------------------------
347347
348- You can set all :ref:`spark-input-conf` via the read ``uri`` setting.
348+ You can set all :ref:`spark-input-conf` via the read ``connection. uri`` setting.
349349
350350For example, consider the following example which sets the read
351- ``uri`` setting via ``SparkConf``:
351+ ``connection. uri`` setting via ``SparkConf``:
352352
353353.. note::
354354
@@ -357,24 +357,24 @@ For example, consider the following example which sets the read
357357
358358.. code:: cfg
359359
360- spark.mongodb.read.uri=mongodb://127.0.0.1/databaseName.collectionName?readPreference=primaryPreferred
360+ spark.mongodb.read.connection .uri=mongodb://127.0.0.1/databaseName.collectionName?readPreference=primaryPreferred
361361
362362The configuration corresponds to the following separate configuration
363363settings:
364364
365365.. code:: cfg
366366
367- spark.mongodb.read.uri=mongodb://127.0.0.1/
367+ spark.mongodb.read.connection .uri=mongodb://127.0.0.1/
368368 spark.mongodb.read.database=databaseName
369369 spark.mongodb.read.collection=collectionName
370370 spark.mongodb.read.readPreference.name=primaryPreferred
371371
372- If you specify a setting both in the ``uri`` and in a separate
373- configuration, the ``uri`` setting overrides the separate
372+ If you specify a setting both in the ``connection. uri`` and in a separate
373+ configuration, the ``connection. uri`` setting overrides the separate
374374setting. For example, given the following configuration, the
375375database for the connection is ``foobar``:
376376
377377.. code:: cfg
378378
379- spark.mongodb.read.uri=mongodb://127.0.0.1/foobar
379+ spark.mongodb.read.connection .uri=mongodb://127.0.0.1/foobar
380380 spark.mongodb.read.database=bar
0 commit comments