Question: When doing a Purview scan on Azure Databricks, I get the following error. What could be the cause of the error and how we can fix it?
Remarks: For safety, I have replaced the 16 digits in the error with xxxxxxxxxxxxxxxx
. Also we have Java JDK 11 installed on the server hosting the Integration Runtime
Error: (3805) Connector Exception: Connection to the database (with URL jdbc:databricks://adb-xxxxxxxxxxxxxxxx.11.azuredatabricks.net:443/default;transportMode=http;ssl=1;httpPath=sql/protocolv1/o/xxxxxxxxxxxxxxxx/0455-165046-lamas36;AuthMech=3) failed: [Databricks]DatabricksJDBCDriver Communication link failure. Failed to connect to server. Reason: HTTP Response code: 403, Error message: Unknown. More info.
2
Answers
403 error means that your identity for which you generated the personal access token (PAT) doesn’t have sufficient permissions to access the given SQL Warehouse. Adjust permissions to it.
I tried the similar thong from my environment, and it got scanned successfully.
While researching about the error I found out that the cause of error is Wrong Personal Access token (PAT) is using in the credential I was able to repro the error.
The cause of error can be:
The resolution is to use valid Personal Access token (PAT) in credentials:
Create appropriate Personal Access token (PAT) to access azure databricks and copy it as shown below.
Add that token in keyvault and use it in credential as below.
Create a new credential with above secret.
Use it in credential.
Successfully scanned: