<?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: Hostname not resolving using Spark JDBC in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/hostname-not-resolving-using-spark-jdbc/m-p/110513#M43597</link>
    <description>&lt;P&gt;I have even cloned the cluster and it worked on the new one. But after turning the cluster off over night, it started working again the next morning. This is really weird.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 16:02:14 GMT</pubDate>
    <dc:creator>Splush_</dc:creator>
    <dc:date>2025-02-18T16:02:14Z</dc:date>
    <item>
      <title>Hostname not resolving using Spark JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/hostname-not-resolving-using-spark-jdbc/m-p/110381#M43556</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;Ive ran into a weird error this morning. Last week I was testing a new Oracle Connector and it ran through smooth the whole last week!&lt;/P&gt;&lt;P&gt;This morning at 7 it ran again and following it was showing a "&lt;SPAN&gt;SQLRecoverableException: IO Error: Unknown host specified" exception on every single run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The weird thing is, that it is working on other compute - just not the one Im actually using for production. If I do an nslookup, it will resolve the ip just fine and using this exact IP, the jdbc query will work. If I use the hostname straight away inside of the jdbc query, it will not work (although it did last week).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the code I use for fetching the data:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = spark.read.format("jdbc").option("driver", "oracle.jdbc.driver.OracleDriver") \
            .option("url", jdbc_url) \
            .option("dbtable", query) \
            .option("user", username) \
            .option("password", password) \
            .load()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 10:45:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hostname-not-resolving-using-spark-jdbc/m-p/110381#M43556</guid>
      <dc:creator>Splush_</dc:creator>
      <dc:date>2025-02-17T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname not resolving using Spark JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/hostname-not-resolving-using-spark-jdbc/m-p/110513#M43597</link>
      <description>&lt;P&gt;I have even cloned the cluster and it worked on the new one. But after turning the cluster off over night, it started working again the next morning. This is really weird.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 16:02:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/hostname-not-resolving-using-spark-jdbc/m-p/110513#M43597</guid>
      <dc:creator>Splush_</dc:creator>
      <dc:date>2025-02-18T16:02:14Z</dc:date>
    </item>
  </channel>
</rss>

