Closed afedinhsol closed 4 months ago
Thanks for reporting. I believe this is working as intended. DBFS mounts are not accessible through the REST API.
The path /mnt
is not a mount itself and contains the mount points (if I'm not mistaken).
The path /mnt/DELTA
is probably a mount point.
The returned error is unfortunate, though.
Thanks @pietern. We actually determined internally that this was a mistaken authorization error and not a connectivity error. This does work on DBFS mount points, when the External Location auth. is setup correctly.
To the point of the error message: we think it's an Expired Secret on the Azure Service Principal...which is different than the error given, which implies a formatting or REST API issue.
If you want to use this to put in a small enhancement to this error messaging around the REST API, you can use this ticket. Otherwise: I think I have my question answered and this issue can be closed.
Thanks again.
Describe the issue
There appears to be inconsistent behavior and/or an undocumented difference in how the databricks cli
fs ls
command operates against an External Location configured with an Azure Datalake Gen2 Storage Account.This process was tested, using azure-cli authentication and databricks access token methods. The Azure Databricks Cluster allows Public access and has 'npip' set to false.
The external location is mapped to an Azure Datalake Gen2 Storage Account. It's mapped to a Databricks Access Connector, that has 'Storage Blob Data Contributor' permissions on the Storage Account. The firewall on the Azure Storage Account is set to 'Enabled from selected virtual networks and IP addresses' and has a whitelist for the 10 subnets listed in the same region network connectivity configuration.
Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
databricks -p AUGUSTUSDV1 fs ls dbfs:/mnt --debug
(Access Token Authentication) 1a. Succeedsdatabricks -p AUGUSTUSDV1 fs ls dbfs:/mnt/DELTA --debug
(Access Token Authentication) 2a. Fails withinvalid client secret provided
errordatabricks -p AUGUSTUSDV fs ls dbfs:/mnt --debug
(Access CLI Authentication) 3a. Succeedsdatabricks -p AUGUSTUSDV fs ls dbfs:/mnt/DELTA --debug
(Access CLI Authentication) 4a. Fails withinvalid client secret provided
errorExpected Behavior
Expect all four commands above to be successful.
Actual Behavior
Root
fs ls
commands succeed, while nested directoriesfs ls
commands fail.OS and CLI version
Databricks CLI v0.219.0 MacOS (Sonoma 14.4.1)
Is this a regression?
Unknown (Only version attempted)
Debug Logs
.databrickscfg setup
Succeeding
Failing