<?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: Connection Databricks Postgresql in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/17715#M11678</link>
    <description>&lt;P&gt;hi @Boumaza nadia​&amp;nbsp;Please check the Ganglia metrics for the cluster. This could be a  scalability issue where cluster is overloading. This can happen due to a large partition not fitting into the given executor's memory. To fix this we recommend bumping up the worker node type. Switch to a bigger worker node instance to mitigate the issue.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 06:33:46 GMT</pubDate>
    <dc:creator>Prabakar</dc:creator>
    <dc:date>2022-06-16T06:33:46Z</dc:date>
    <item>
      <title>Connection Databricks Postgresql</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/17714#M11677</link>
      <description>&lt;P&gt;I use Databricks and I try to connect to posgresql via the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"jdbcHostname = "xxxxxxx"&lt;/P&gt;&lt;P&gt;jdbcDatabase = "xxxxxxxxxxxx"&lt;/P&gt;&lt;P&gt;jdbcPort = "5432"&lt;/P&gt;&lt;P&gt;username = "xxxxxxx"&lt;/P&gt;&lt;P&gt;password = "xxxxxxxx"&lt;/P&gt;&lt;P&gt;jdbcUrl = "jdbc:postgresql://{0}:{1}/{2}".format(jdbcHostname, jdbcPort, jdbcDatabase)&lt;/P&gt;&lt;P&gt;connectionProperties = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"user" : username,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"password" : password,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"driver" : "org.postgresql.Driver"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df = spark.read.jdbc(url=jdbcUrl, table= "xxxxxxxxx" , properties=connectionProperties)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I try to read a table that is 28 million rows and here is the error message;&lt;/P&gt;&lt;P&gt;"SparkException: Job aborted due to stage failure: Task 0 in stage 3.0 failed 4 times, most recent failure: Lost task 0.3 in stage 3.0 (TID 6) (10.139.64.5 executor 4): ExecutorLostFailure (executor 4 exited caused by one of the running tasks) Reason: Executor heartbeat timed out after 150527 ms"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:33:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/17714#M11677</guid>
      <dc:creator>nadia</dc:creator>
      <dc:date>2022-06-14T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Databricks Postgresql</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/17715#M11678</link>
      <description>&lt;P&gt;hi @Boumaza nadia​&amp;nbsp;Please check the Ganglia metrics for the cluster. This could be a  scalability issue where cluster is overloading. This can happen due to a large partition not fitting into the given executor's memory. To fix this we recommend bumping up the worker node type. Switch to a bigger worker node instance to mitigate the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:33:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/17715#M11678</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-06-16T06:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Databricks Postgresql</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/120949#M46286</link>
      <description>&lt;P&gt;Can you tell me how you are able to connect postgres database from Databricks . Do we have to whitelist ips in postgres?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:51:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-databricks-postgresql/m-p/120949#M46286</guid>
      <dc:creator>santhosh11</dc:creator>
      <dc:date>2025-06-04T15:51:36Z</dc:date>
    </item>
  </channel>
</rss>

