Hi @Karl , Greetings!
I've outlined the steps below to connect from Databricks to IBM DB2 using JDBC:
Step 1: Obtain the DB2 JDBC Driver
Step 2: Attach JDBC Driver to Cluster
- In the Databricks cluster, navigate to the "Libraries" tab.
- Add the DBFS file path containing the JDBC driver JAR.
- Install the JAR file to the cluster.
Step 3: Create a Notebook and Connect to IBM DB2
- Follow the provided documentation to establish the JDBC connection.
- Execute the cell to establish the JDBC connection.
- Once connected, execute SQL queries in subsequent cells to interact with the IBM DB2 database.
JDBC URL: jdbc:db2://host-name:50001/BLUDB:sslConnection=true;
Reference Document: IBM DB2 for z/OS JDBC Connectivity Guide
By following these steps, you can establish a JDBC connection from Databricks to your IBM DB2 database and execute SQL queries for data interaction.
Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Regards,
Ayushi