Spark startup time with Python packages install is too slow
Creating an environment gives you a nice UI to set a list of Python packages to install by default
The user thinks : “Oh cool, this will be faster than doing %pip install every time I start a notebook”
The reality is that it now takes 3 minutes to start Spark, instead of 10 seconds to run "%pip install"
Either fix the UI to warn users, or fix the startup time.
7 Comments
- vasu_nNew Member
We had the same problem. The moment we customize the node with PyPi packages, we loose the StarterPools instant start feature and go back to old 3-4 minute start time.
For sometime, used the pip to install the packages from inside the notebook.
And one file day, all ETLs failed stating the %pip magic commands disabled inside pipeline.
Finally i managed to install the pip packages into Lakehouse files space like below
!pip install googleads -t /lakehouse/default/Files/PyPi Packages/
and then in the notebook i add below line to include the Lakehouse folder into syspath so the package can be imported like local installed package.
import sys
sys.path.append('/lakehouse/default/Files/PyPi Packages/')
This is a workaround to avoid high start time and still work with custom packages.
Hope there will be some native fix for this in the future fabric runtimes.
- Jonathan_BoarmaNew Member
Databricks's newish serverless compute feature seems to directly compete with Fabric's temporary differentiator, which were the fast compute session launches. Now, Fabric is again behind Databricks in terms of offering clean options for maintaining a pool of properly configured compute. At least there when you reserve compute, you get pools that are configured correctly. This is embarrassing, Microsoft!
If you are launching pipelines and need python dependencies, get ready for seriously slow compute. :/
- nishalitNew MemberThank you for sharing this idea. This feature is planned. Stay tuned.
- fbcideas_migusrNew MemberStatus added:Planned
- Andrew_Hill_TRSRegular Visitorforget 3 minutes - if you have custom network (because for some reason your production is not available to the entire internet), and you have a library you can expect 10 to 15 minutes start-up, which support says is "expected" it is currently documented at 'https://learn.microsoft.com/en-us/fabric/data-engineering/spark-compute' that you can expect 2 to 5 minutes extra for adding a library, but i find that i pay the full 5 minutes even for a little helper library that i can pip install in less than 30 seconds.
- nielsvdc
Super User
Currently in our environment startup time for a custom environment on a starter pool can take up to 18 minutes. This is since the September release after FabCon Europe. 18 minutes is a lot of coffee drinking and not really being productive. I'm getting questions about when we are moving to Synapse or Databricks, which is not what we really want from an architecture point of view.
Update: There is a known issue since August https://support.fabric.microsoft.com/known-issues/?active=true&fixed=true&sort=published&product=Data%2520Engineering&issueId=1550
- Andrew_Hill_TRSRegular VisitorAnything more that 15 minutes is out of spec, and that would by for a custom size, vnet linked environment with a custom library added, each documented as *max* 5 minutes, but minimum 30b seconds to 2 minutes.
Recent ideas
Add "Collapse all / Expand all" to the Queries pane in Power Query Editor
Hi Fabric Community, I suggest adding a "..." menu beside Queries(n])with Collapse all and Expand all. Current state: With many queries, every group and Helper Queries folder is expanded. My 8...DataVitalizer1 hour agoSuper UserNew6Views0likes0CommentsAdd Automated Pre-Upgrade Compatibility Assessment for Fabric Spark Runtimes
Microsoft Fabric should provide an automated compatibility assessment before a workspace, Environment, notebook, or Spark Job Definition is upgraded to a newer Fabric Runtime. Spark runtime upgra...mourakshit2 hours agoNew MemberNew4Views0likes0CommentsSupport Creator-Independent Managed Identity and Ownership Transfer for Fabric Operations Agents
Microsoft Fabric Operations Agents should support an enterprise identity and ownership model that is independent of the individual user who originally created the agent. Today, an Operations Agent r...mourakshit2 hours agoNew MemberNew3Views0likes0CommentsAdd Centralized Health, Freshness Monitoring, and Alerts for OneLake Shortcuts
Microsoft Fabric should provide a centralized health-monitoring experience for OneLake Shortcuts across workspaces and data sources. As organizations adopt OneLake Shortcuts at enterprise scale, hun...mourakshit2 hours agoNew MemberNew3Views0likes0CommentsAdd Schema Compatibility Policies and Breaking-Change Detection to Fabric Event Schema Registry
Fabric Event Schema Registry should support configurable schema compatibility policies so teams can safely evolve event contracts without breaking downstream Eventstreams, Eventhouse ingestion, appli...mourakshit2 hours agoNew MemberNew3Views0likes0Comments