<?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 Re: Unable to Read Collection/Files from MongoDB using Azure Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108302#M43027</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147257"&gt;@simha08&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you test connectivity first to the MongoDB? using nc -vz hostname port.&lt;/P&gt;
&lt;P&gt;Also please share the code you are using to establish the connection and read data.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2025 16:04:02 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-02-01T16:04:02Z</dc:date>
    <item>
      <title>Unable to Read Collection/Files from MongoDB using Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108225#M42998</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Can someone help to read data from MongoDB using Azure Databricks? Surprisingly, I am able to connect from Jupyter Notebook and read data, but not from the Azure Databricks.&lt;/P&gt;&lt;P&gt;1) I have install the required spark-connector packages in the cluster. 2) I have a valid MongoDB Atlas Cluster. 3) I have Spark cluster 13.3 LTS.&lt;/P&gt;&lt;P&gt;I am not even able to read the local database which I have created in Mongo DB Compass which has port 27017.&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 00:57:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108225#M42998</guid>
      <dc:creator>simha08</dc:creator>
      <dc:date>2025-02-01T00:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Collection/Files from MongoDB using Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108302#M43027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147257"&gt;@simha08&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you test connectivity first to the MongoDB? using nc -vz hostname port.&lt;/P&gt;
&lt;P&gt;Also please share the code you are using to establish the connection and read data.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 16:04:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108302#M43027</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-01T16:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Collection/Files from MongoDB using Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108538#M43074</link>
      <description>&lt;P&gt;I am using following code to read the data from mongoDB using Databricks&lt;/P&gt;&lt;P&gt;from pyspark.sql import SparkSession&lt;BR /&gt;spark = SparkSession \&lt;BR /&gt;.builder \&lt;BR /&gt;.appName("myApp") \&lt;BR /&gt;.config("spark.mongodb.connection.uri", "mongodb+srv://username:password@cluster.xxxx.mongodb.net/database.collection") \&lt;BR /&gt;.getOrCreate()&lt;/P&gt;&lt;P&gt;df = spark.read.format("mongo").load()&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:32:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-read-collection-files-from-mongodb-using-azure/m-p/108538#M43074</guid>
      <dc:creator>simha08</dc:creator>
      <dc:date>2025-02-03T09:32:15Z</dc:date>
    </item>
  </channel>
</rss>

