<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MongoDB Streaming Not Receiving Records in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110193#M43520</link>
    <description>&lt;P&gt;&lt;BR /&gt;Batch Read (spark.read.format("mongodb")) works fine.&lt;BR /&gt;Streaming Read (spark.readStream.format("mongodb")) runs but receives no records.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Batch Read (Works):&lt;/STRONG&gt;&lt;BR /&gt;df = spark.read.format("mongodb")\&lt;BR /&gt;.option("database", database)\&lt;BR /&gt;.option("spark.mongodb.read.connection.uri", connectionString)\&lt;BR /&gt;.option("collection", collection)\&lt;BR /&gt;.schema(schema)\&lt;BR /&gt;.load()&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Streaming Read (Not Receiving Records):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dfs = spark.readStream.format("mongodb")\&lt;BR /&gt;.option("database", database)\&lt;BR /&gt;.option("spark.mongodb.read.connection.uri", connectionString)\&lt;BR /&gt;.option("collection", collection)\&lt;BR /&gt;.schema(schema)\&lt;BR /&gt;.load()&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Does MongoDB require special settings to enable streaming?&lt;BR /&gt;Any known issues with MongoDB change streams on Databricks?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 09:52:37 GMT</pubDate>
    <dc:creator>vidya_kothavale</dc:creator>
    <dc:date>2025-02-14T09:52:37Z</dc:date>
    <item>
      <title>MongoDB Streaming Not Receiving Records in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110193#M43520</link>
      <description>&lt;P&gt;&lt;BR /&gt;Batch Read (spark.read.format("mongodb")) works fine.&lt;BR /&gt;Streaming Read (spark.readStream.format("mongodb")) runs but receives no records.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Batch Read (Works):&lt;/STRONG&gt;&lt;BR /&gt;df = spark.read.format("mongodb")\&lt;BR /&gt;.option("database", database)\&lt;BR /&gt;.option("spark.mongodb.read.connection.uri", connectionString)\&lt;BR /&gt;.option("collection", collection)\&lt;BR /&gt;.schema(schema)\&lt;BR /&gt;.load()&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Streaming Read (Not Receiving Records):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dfs = spark.readStream.format("mongodb")\&lt;BR /&gt;.option("database", database)\&lt;BR /&gt;.option("spark.mongodb.read.connection.uri", connectionString)\&lt;BR /&gt;.option("collection", collection)\&lt;BR /&gt;.schema(schema)\&lt;BR /&gt;.load()&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Does MongoDB require special settings to enable streaming?&lt;BR /&gt;Any known issues with MongoDB change streams on Databricks?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 09:52:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110193#M43520</guid>
      <dc:creator>vidya_kothavale</dc:creator>
      <dc:date>2025-02-14T09:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB Streaming Not Receiving Records in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110214#M43522</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113924"&gt;@vidya_kothavale&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;MongoDB requires the use of change streams to enable streaming. Change streams allow applications to access real-time data changes without polling the database. Ensure that your MongoDB instance is configured to support change streams. Change Streams are available for replica sets and sharded clusters in MongoDB 3.6 and later&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 12:55:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110214#M43522</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-14T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB Streaming Not Receiving Records in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110221#M43525</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;Currently, only the records received after streaming started are available; the previous records are missing. Is there any additional steps required?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 13:24:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mongodb-streaming-not-receiving-records-in-databricks/m-p/110221#M43525</guid>
      <dc:creator>vidya_kothavale</dc:creator>
      <dc:date>2025-02-14T13:24:13Z</dc:date>
    </item>
  </channel>
</rss>

