Forum Discussion

Broeks's avatar
Broeks
Icon for Helper II rankHelper II
1 year ago
Solved

Select the fabric kernel to debug spark job definition in VSCode

Hello,   I want to develop and debug spark job definitions on my local machine using VSCode. I want to use mssparkutils and notebookutils. So I'm wondering how i can select the fabric kernel in VSC...
  • Apikpo09's avatar
    1 year ago

    Currently, Spark Job Definitions cannot be debugged using the Fabric kernel in VSCode. The Fabric kernel is mainly designed for running notebooks, whereas Spark Job Definitions require execution on the remote Spark Runtime. If you try to debug a Spark Job Definition using the Fabric kernel, it won’t function as expected since it lacks the necessary Spark execution environment.

    To properly develop and debug Spark jobs, you need to select the remote Spark Runtime, which provides the required Spark components and dependencies. This ensures that your job runs in an environment similar to the one it will be deployed in, allowing for accurate testing and debugging.

    If you were expecting this functionality within the Fabric kernel itself, it would be worth checking Microsoft’s official roadmap or documentation for any future support. Having the ability to debug Spark Job Definitions directly in the Fabric kernel would be a valuable enhancement, as it would streamline development and testing workflows without requiring an external runtime.

    Are there any specific issues you’re facing while debugging your Spark Job Definition? Let me know how I can assist further!