Method public void org.apache.spark.sql.internal.CatalogImpl.clearCache() is not whitelisted on clas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 07:59 AM
I'm executing a notebook and failed with this error:
Sometime, when i execute some function in spark and also failed with the error 'this class is not whitelist'.
Could everyone help me check on this?
Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 10:51 PM
Hi @NhanNguyen , Hope you are doing well!
Can you please confirm which cluster access mode you are using to run the above notebook command?
As per the error details in the screenshot, I am assuming you are using catalog.clear_cache on the Shared Cluster mode and currently, the "catalog.clear_cache" feature does not support shared cluster mode and is only applicable for single-user mode or no isolation shared mode. This limitation is due to the current design of shared clusters in Databricks.
So in case you are using the shared cluster mode, could you please try to run the commands on the Single User or no-isolation shared access mode?
Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 06:58 PM
Thanks for your feedback, actually my cluster is shared cluster, and then I change to single cluster then can run that method/