cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DB2 JDBC connection error

elgeo
Valued Contributor II

Hello. I am trying to establish a connection from Databricks to our DB2 AS400 server. Below is my code:

CREATE TABLE IF NOT EXISTS table_name

USING JDBC

OPTIONS (DRIVER = "com.ibm.as400.access.AS400JDBCDriver", URL = "jdbc:as400://<IP>:446;prompt=false", dbtable="<SCHEMA>.<TABLE_NAME>", user = "USER1", password="XXXXX" )

However I get the following error:

Error in SQL statement: SQLException: The application requester cannot establish the connection. (Connection was dropped unexpectedly.)

Connection to the specific IP address succeeds:

jdbc_error 

1 ACCEPTED SOLUTION

Accepted Solutions

elgeo
Valued Contributor II

Hi @Kaniz Fatmaโ€‹. I resolved the problem. It was due to authorization issues. I got the appropriate access and it worked fine

View solution in original post

1 REPLY 1

elgeo
Valued Contributor II

Hi @Kaniz Fatmaโ€‹. I resolved the problem. It was due to authorization issues. I got the appropriate access and it worked fine

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group