I am trying to connect to Databricks using a JDBC URL connection and a Personal Access Token (PAT) in Retool. The expected behavior is to establish a successful connection between Retool and Databricks, allowing me to access and query data from Databricks within my Retool application.
- Steps:
- I obtained a Personal Access Token from Databricks with the necessary permissions.
1.1 We are not sure if this PAT is indeed the correct credential that retool is expecting. - I provided the following JDBC URL in the Retool Databricks connection settings:
- I obtained a Personal Access Token from Databricks with the necessary permissions.
JDBC Connection string structure:
jdbc:databricks://<databricks-instance>:<port>/default;transportMode=http;ssl=1;AuthMech=3;httpPath=<http-path>;UID=token;PWD=<personal-access-token>
I replaced <databricks-instance>
with my Databricks instance hostname, <http-path>
with the appropriate HTTP path, and <personal-access-token>
with my actual Personal Access Token.
I clicked on "Test Connection" to verify the connection, but it throws a Unprocessable Entity
422 error.
With the URL string connection, I do get all the fields populated as shown in the attached image.
I have reviewed the Databricks documentation and double-checked the fields we are sending, but I'm still unsure which specific fields or values are causing the issue. Could you please provide more guidance on the required fields and their expected formats for this particular Databricks connection?
Additionally, if possible, could you share any common pitfalls or missing fields that often lead to a 422 error in this context? I would greatly appreciate any insights or examples you can offer to help us resolve this error and successfully create the Databricks resource.
Thanks for the help!