kevinjqliu commented on issue #2326:
URL: 
https://github.com/apache/iceberg-python/issues/2326#issuecomment-3189462953

   Looks like this fails in `AzureBlobFileSystem` specifically in the way 
credential is handled. 
   
   i was able to get it working with this:
   ```
   account_name = "onelake"
   account_host = f"{account_name}.blob.fabric.microsoft.com"
   credential = DefaultAzureCredential()
   {
       "adls.account-name": account_name,
       "adls.account-host": account_host,
       "adls.credential": credential,
   }
   ```
   
   Use `adls.credential` to pass credential directly to the 
`AzureBlobFileSystem` constructor, this was added in #2299
   
   To work with onelake, we also need to set `adls.account-host` which was 
added in #2016. The `account-host` parameter was only added to 
`AzureBlobFileSystem` in this 
[commit](https://github.com/fsspec/adlfs/commit/126ffc0a7fb0cf89beaba562f3e07e46f69279c7)
 which is only available for version >=2024.7.0
   
   You can check which adlfs version youre using by running
   ```
   import adlfs
   print(adlfs.__version__)
   ```
   
   I looks like pyiceberg already [install adlfs `2024.12.0` by 
default](https://github.com/apache/iceberg-python/blob/640c592b705db01199020db8e5f2b6e2c67f06bf/poetry.lock#L5)
 so the issue is likely just with setting the `account_host` and `credential`
   
   could you set those and confirm? 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to