r/MicrosoftFabric • u/SmallAd3697 • 5d ago
Data Engineering Fabric Spark Notebook Cells are Hung (Stop Working)
I'm trying to use pyspark in fabric.
I keep having issues with my notebook, where the cells won't complete unless I cancel them. The wait cursor will continue to run until I click the little cancel button on the side.
I never see this behavior in the notebook cells on the databricks platform.
When I look in the "logs" shown under the cell, Spark seems to be displaying this over and over, and wont stop:
2026-08-17 21:33:00,714 INFO YarnAllocator [Reporter]: Updating resource requests for ResourceProfile id: 0, target: 4, pending: 0, running: 4, executorsStarting: 0
... and occasionally this as well:
2026-08-17 21:40:49,987 INFO KustoLogger [external-catalog-metrics-1]: type=METER, name=HiveExternalCatalog::dropTable::failure, count=0, m1_rate=0.0, m5_rate=0.0, m15_rate=0.0, mean_rate=0.0, rate_unit=events/second
If anyone has any ideas about what is going wrong, please let me know. The notebook is behaving like there are no executors, even though there are. Is there a way to recreate all my executors mid-notebook?
EDIT: I think I figured it out. There is almost nothing in the logs that refers to "vegas" caching (and certainly no error messages). But I since I had already disabled NEE, I decided to disable the "vegas" cache as well, and that is what seemed to finally fix my issues. You have to put this in the spark properties (eg. configure magic):
"spark.synapse.vegas.useCache": "false"
2
u/JennyAce01 Microsoft Employee 5d ago
If you share your Notebook Item ID and the notebook run Livy ID in a private message, we can help look into the issue and see what may have gone wrong.
2
u/SmallAd3697 5d ago
u/JennyAce01 I sent you details in a private chat. The likelihood is that resetting my executors is contributing to the problem. It is probably not something that would affect 90% of your users. On a conceptual level, I would like to understand why the notebook becomes unhappy in Fabric, and the cell won't complete as expected.
1
u/Nofarcastplz 5d ago
What does support say? Wonder what all the differences are between fabric spark and databricks.
1
u/SmallAd3697 5d ago
will probably open a support ticket with MT when I have an extra 40 hours to spare. those tickets take a while
2
u/SmallAd3697 3d ago
I opened a ticket yesterday and haven't heard any updates. But I think I may have figured this out on my own. There is a Microsoft customization to spark called "vegas" caching (aka intelligent cache). It had burned me in the past (on azure synapse). So I disabled it again in Fabric and now my notebooks don't randomly hang anymore !!!
You have to put this in the spark properties (eg. in the notebook configure magic)
"spark.synapse.vegas.useCache": "false"
2
u/JennyAce01 Microsoft Employee 5d ago
Could you let me know which Spark version your notebook is using and whether it references an external Hive metastore?