-
Notifications
You must be signed in to change notification settings - Fork 482
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
[BUG] Issue with OneLake authentication in Notebook #923
Comments
FYI @devlace |
I had a call with the engineer today. We were able to reproduce the error during our call. The team is going to investigate this issue tomorrow. |
For now, we have added a workaround in the notebook itself. ## Temporary workaround. Remove when issue with OneLake authentication in Notebook is resolved.
file_path = f"{local_data_mount_path}/{config_file_path}"
os.listdir(f"{local_data_mount_path}/")
os.listdir(f"{local_data_mount_path}/sc-adls-main")
os.listdir(f"{local_data_mount_path}/sc-adls-main/config")
with open(file_path, "r") as file:
file_content = file.read()
print(file_content) |
There is no update on the IcM. |
Engineering team has responded to our IcM https://portal.microsofticm.com/imp/v5/incidents/details/572273196/summary and acknowledged that it's a bug. There is already a PR out for the fix. Meanwhile, they also attested the workaround that we are using. Here is an excerpt from the IcM: Hey Anuj Parashar , I sincerely apologize for the delay in the response. Bug 1548911 Head call to OneLake for External ADLS is failing at container level As a workaround, could you please make a list call first (os.listdir() which you are already using) and then read the file? The list call should succeed as the issue is primarily with the head call - internally I suspect that Spark validates whether the container exists before reading the file but when a list is performed, it may cache this info due to which read may not perform a head call - I will confirm the behavior from the Spark team. In the meantime, I hope this workaround helps you while we fix the bug. Please let me know. |
Workaround incorporated, and issue acknowledged by PG. |
As part of setup, we create a OneLake shortcut to ADLS Gen2 storage account. This shortcut uses "Workspace Identity" for authentication.
Now, in the "setup" notebook, we add a default lakehouse and mount it locally.
When trying to access a config file stored within a folder of this shortcut, it fails initially. However, after 1-2 minutes, the file becomes accessible.
I have created an IcM for investigating this issue: https://portal.microsofticm.com/imp/v5/incidents/details/572273196/summary
Relates to #862
DoD
The text was updated successfully, but these errors were encountered: