Monday
i am facing issue :- [UNITY_CREDENTIAL_SCOPE_MISSING_SCOPE] Missing Credential Scope. Unity Credential Scope id not found in thread locals.
Issue occurs:-
when we try to list files using dbutils.fs.ls
and also this occurs at times when we try to write or read a parquet file
This occurs 4 in 10 times a day. This occurs in prod as well .
No Proper fix has been Documented.
Can someone help here ? This is blocked since many days
Monday
Hi @kasiviss42,
Are you using any Scala code in your notebook?
The error [UNITY_CREDENTIAL_SCOPE_MISSING_SCOPE] Missing Credential Scope. Unity Credential Scope id not found in thread locals
that you are encountering when using dbutils.fs.ls
and while reading or writing parquet files is a known issue related to Unity Catalog in Databricks. This issue occurs because Unity Credential Scopes are stored as thread locals, and in certain scenarios, such as when using Scala thread pools, these scopes are not transferred to the new threads, leading to the error
Monday
Its python
Monday
Hi @kasiviss42, Thank you for sharing the error details!
To provide better guidance, could you clarify the following details about your environment and use case?
Cluster Configuration:
spark.databricks.unityCatalog.singleUserAutoGlobalScope
to true
?Workload Details:
Specific Context:
Setup and Logs:
Monday
1. Cluster Configuration
Monday
@kasiviss42 thanks for sharing these details.
We can potentially get to the root cause by enabling the traceLogging for UC, but the communication will not be efficient through this channel. Could you please raise a Support Ticket? We'd like to help you address this problem or at the very least find a workaround.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group