Error: Not Authorized to Monitor This SQL Endpoint
Issue
The connection setup test or sync fails with the following error:
Check cluster configuration: Failed to read Databricks cluster/SQL Endpoint information. Error: {"error_code":"PERMISSION_DENIED","message":"<principal_id> is not authorized to monitor this SQL Endpoint. Please contact your administrator."}
Environment
- Destination: Databricks
- Compute type: SQL warehouse
Resolution
Grant the Databricks user or service principal that Fivetran uses at least the Can monitor permission on the SQL warehouse:
- In Databricks, go to SQL > SQL warehouses.
- Select the SQL warehouse that you use with Fivetran.
- Click Permissions.
- Find or add the user or service principal that Fivetran uses.
- Grant it the Can monitor permission.
- Save the changes.
- In the Fivetran dashboard, go to your Databricks destination details page.
- Click Actions > Edit connection details.
- Click Save & Test.
Cause
The Databricks user or service principal that Fivetran uses does not have sufficient permissions on the SQL warehouse.
During the setup test, Fivetran retrieves information about the SQL warehouse. This operation requires the user or service principal to have at least the Can monitor permission. If it has only the Can use permission, the request fails.