<?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: connect databricks to teradata in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15109#M9475</link>
    <description>&lt;P&gt;thanks &lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 07:48:16 GMT</pubDate>
    <dc:creator>Rishabh-Pandey</dc:creator>
    <dc:date>2022-12-28T07:48:16Z</dc:date>
    <item>
      <title>connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15103#M9469</link>
      <description>&lt;P&gt;hey i want to know can we connect databricks to the teradata database and if yes what will be the procedure ??? help would be appreciated &lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 10:24:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15103#M9469</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2022-12-22T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15104#M9470</link>
      <description>&lt;P&gt;@Rishabh Pandey​&amp;nbsp;You can follow the below docs on how to connect to teradata from databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cdata.com/kb/tech/teradata-jdbc-azure-databricks.rst" alt="https://www.cdata.com/kb/tech/teradata-jdbc-azure-databricks.rst" target="_blank"&gt;https://www.cdata.com/kb/tech/teradata-jdbc-azure-databricks.rst&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://medium.com/@Tulga.Unlusoy/accessing-teradata-from-databricks-for-rapid-experimentation-in-data-science-and-analytics-projects-4c5e0b558b1" alt="https://medium.com/@Tulga.Unlusoy/accessing-teradata-from-databricks-for-rapid-experimentation-in-data-science-and-analytics-projects-4c5e0b558b1" target="_blank"&gt;https://medium.com/@Tulga.Unlusoy/accessing-teradata-from-databricks-for-rapid-experimentation-in-data-science-and-analytics-projects-4c5e0b558b1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 19:29:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15104#M9470</guid>
      <dc:creator>User16255483290</dc:creator>
      <dc:date>2022-12-22T19:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15105#M9471</link>
      <description>&lt;P&gt;Hi @Rishabh Pandey​&amp;nbsp;just add Teradata JDBC jar to your data bricks cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html" alt="https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html" target="_blank"&gt;https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 12:40:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15105#M9471</guid>
      <dc:creator>Harshjot</dc:creator>
      <dc:date>2022-12-23T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15106#M9472</link>
      <description>&lt;P&gt;use the JDBC driver from here &lt;A href="https://docs.databricks.com/integrations/jdbc-odbc-bi.html" target="test_blank"&gt;https://docs.databricks.com/integrations/jdbc-odbc-bi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 23:16:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15106#M9472</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-12-27T23:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15107#M9473</link>
      <description>&lt;P&gt;thanks &lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 07:47:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15107#M9473</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2022-12-28T07:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15108#M9474</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 07:48:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15108#M9474</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2022-12-28T07:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15109#M9475</link>
      <description>&lt;P&gt;thanks &lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 07:48:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15109#M9475</guid>
      <dc:creator>Rishabh-Pandey</dc:creator>
      <dc:date>2022-12-28T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15110#M9476</link>
      <description>&lt;P&gt;Would this connection be encrypted end to end?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 18:14:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/15110#M9476</guid>
      <dc:creator>JasonMamoa</dc:creator>
      <dc:date>2023-02-08T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: connect databricks to teradata</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/118882#M45732</link>
      <description>&lt;P&gt;There are two main ways to connect to Teradata from Databricks using Python.&lt;/P&gt;&lt;P&gt;Way 1: &lt;STRONG&gt;Using Python Libraries&lt;/STRONG&gt; (e.g., &lt;A href="https://pypi.org/project/SQLAlchemy/" target="_self"&gt;sqlalchemy&lt;/A&gt;, &lt;A href="https://pypi.org/project/pyjdbc/" target="_self"&gt;pyjdbc&lt;/A&gt;, &lt;A href="https://pypi.org/project/pyodbc/" target="_self"&gt;pyodbc&lt;/A&gt;, &lt;A href="https://pypi.org/project/JayDeBeApi/" target="_self"&gt;jaydebeapi&lt;/A&gt;, and so on)&lt;/P&gt;&lt;P&gt;Pros:&amp;nbsp;Provides a comprehensive solution, allowing us to: Query data, Trigger stored procedures, Perform other advanced database operations.&lt;/P&gt;&lt;P&gt;Cons:&amp;nbsp;Only utilizes the driver node of the Databricks cluster. So, this way does not leverage the full distributed power of the Databricks cluster, which can lead to performance limitations for large datasets.&lt;/P&gt;&lt;P&gt;Way 2: &lt;STRONG&gt;Using PySpark and &lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html" target="_self"&gt;Spark JDBC API&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Step 1: Install the Maven library &lt;A href="https://mvnrepository.com/artifact/com.teradata.jdbc/terajdbc" target="_self"&gt;&lt;STRONG&gt;terajdbc&lt;/STRONG&gt;&lt;/A&gt; on the Databricks cluster.&lt;/P&gt;&lt;P&gt;Step 2: Read &amp;amp; Write&lt;/P&gt;&lt;PRE&gt;df = spark.read.format('jdbc') \&lt;BR /&gt;.option('driver', 'com.teradata.jdbc.TeraDriver') \&lt;BR /&gt;.option('url', 'jdbc:teradata://&amp;lt;host_name&amp;gt;/DBS_PORT=&amp;lt;port_number&amp;gt;,TMODE=ANSI,logmech=ldap') \&lt;BR /&gt;.option('user', '&amp;lt;user&amp;gt;') \&lt;BR /&gt;.option('password', '&amp;lt;password&amp;gt;') \&lt;BR /&gt;.option('query', '&amp;lt;query&amp;gt;') \&lt;BR /&gt;.load()&lt;BR /&gt;&lt;BR /&gt;df.display()&lt;/PRE&gt;&lt;PRE&gt;df.write.format('jdbc') \&lt;BR /&gt;.option('driver', 'com.teradata.jdbc.TeraDriver') \&lt;BR /&gt;.option('url', 'jdbc:teradata://&amp;lt;host_name&amp;gt;/DBS_PORT=&amp;lt;port_number&amp;gt;,TMODE=ANSI,logmech=ldap') \&lt;BR /&gt;.option('user', '&amp;lt;user&amp;gt;') \&lt;BR /&gt;.option('password', '&amp;lt;password&amp;gt;') \&lt;BR /&gt;.option('dbtable', '&amp;lt;target_db&amp;gt;.&amp;lt;target_table&amp;gt;') \&lt;BR /&gt;.mode('&amp;lt;write_mode&amp;gt;') \&lt;BR /&gt;.save()&lt;/PRE&gt;&lt;P&gt;Note - a.&amp;nbsp;Ensure the URL is correctly configured. b.&amp;nbsp;Provide valid user credentials with appropriate access. c.&amp;nbsp;Ensure &amp;lt;query&amp;gt; or &amp;lt;db_name&amp;gt;.&amp;lt;table_name&amp;gt; is accessible by the &amp;lt;user&amp;gt;.&lt;/P&gt;&lt;P&gt;Pros:&amp;nbsp;Fully utilizes the distributed computing power of the Databricks cluster. So, this way offers excellent performance for reading and writing large datasets.&lt;/P&gt;&lt;P&gt;Cons:&amp;nbsp;Spark JDBC API is primarily for DataFrame-based data I/O, not procedural/transactional logic. So, this way supports limited operations (like, we can't execute stored procedures and some other advanced database operations).&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BroData&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 12:07:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-databricks-to-teradata/m-p/118882#M45732</guid>
      <dc:creator>BroData</dc:creator>
      <dc:date>2025-05-12T12:07:04Z</dc:date>
    </item>
  </channel>
</rss>

