Forum Discussion

Dinosauris's avatar
Dinosauris
Helper I
2 years ago
Solved

Running a Fabric Notebook as Spark Job.

Hello,

 

I am interested in converting a Fabric notebook that I’ve created, containing multiple transformation steps, into a Spark job. However, I’m struggling to find comprehensive documentation on the additional code I need to include (such as building a Spark session) and how to create a reference file if necessary (along with the required code). Additionally, I’m unsure about the modifications needed in my notebook to enable downloading it as a .py file and running it as a Spark job.

 

The motivation behind this transition is that I want the transformation code to execute every 2 hours, and from what I’ve read, using Spark jobs may offer better performance for this use case.

 

I would greatly appreciate it if someone could provide an example of how to achieve this.

Thank you in advance! 😊

  • Hello!

     

    In the meantime we decided to run the Fabric notebooks via pipelines for the use case.

     

    Thank you anyways for the help! 🙂

7 Replies