Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Microsoft Azure Error: Operation timed out" when trying to retrieve big files #2537

Closed
erickfigueiredo opened this issue May 23, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@erickfigueiredo
Copy link

erickfigueiredo commented May 23, 2024

Environment

Delta-rs version: 0.16.0

Environment:

  • OS: Windows 11
  • Python: 3.11.8
  • Pyarrow: 13.0.0
  • adlfs: 2024.4.1

Bug

What happened: I encountered the error OSError: MicrosoftAzure Generic Error: Error in request or response body: Operation timed out when attempting to load data containing millions of rows from a Delta Table (using Azure DataLake Gen 2). This error does not occur when I try to retrieve a smaller amount of data.

What you expected to happen: I expected to load the data from the Delta table and convert it to a Pandas DataFrame without any errors.

How to reproduce it:

from deltalake import DeltaTable

credentials = {
  'account_name': '<account_name>',
  'client_id': '<client_id>',
  'tenant_id': '<tenant_id>',
  'client_secret': '<client_secret>'
}

# Load data from the delta table
dt = DeltaTable("abfs://<container>/<path>", storage_options=credentials)
df = dt.to_pandas()

Captura de tela 2024-05-23 155639

@erickfigueiredo erickfigueiredo added the bug Something isn't working label May 23, 2024
@ion-elgreco
Copy link
Collaborator

You can increase the timeout by doing this: storage_options={"timeout": "100s"}

@ion-elgreco ion-elgreco closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
@erickfigueiredo
Copy link
Author

Thank you very much, @ion-elgreco ! It's working now!
Is there any documentation on all possible parameters that can be used in the storage_options parameter? It would be very useful in my context!

@ion-elgreco
Copy link
Collaborator

@erickfigueiredo you can see most config keys here: https://docs.rs/object_store/latest/object_store/azure/enum.AzureConfigKey.html

@julio-cmdr
Copy link

Hi @ion-elgreco.
The timeout parameter isn't listed in this link. Do you know any other documentation about all possible storage_options?

@ion-elgreco
Copy link
Collaborator

@julio-cmdr
Copy link

Thanks @ion-elgreco!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants