Forum Discussion
Debugging in VSCode: pyspark.errors.exceptions.captured.IllegalArgumentException
- 1 year ago
Hi Broeks,
Thank you for your follow-up. It appears that you have diligently troubleshot and configured the devcontainer for Spark Job Definition (SJD) development. Based on my understanding, the approach you have adopted regarding base image selection, required extensions, and authentication settings is appropriate.
- Using version v2.1.0 for Base Image is a suitable choice, as it incorporates the latest updates and fixes.
- Including the Azure Account and Azure Resources extensions for VS Code Extensions is a prudent decision. These are essential for authentication, even though they may not always be part of example repositories.
- For authentication settings, ensuring proper token refresh is considered a best practice for maintaining seamless authentication.
If you continue to encounter any issues, we kindly suggest reaching out to the Microsoft Support Team through the link provided below. Raising a support ticket will help you receive tailored insights related to your account and potential resolutions.
Microsoft Fabric Support and Status | Microsoft Fabric
If you find our response helpful, we kindly request you to mark it as the accepted solution and provide kudos. This will assist other community members who may have similar queries.
Thank you.
Hallo v-pnaroju-msft,
Thanks for your response.
I've checked my environment variables, as shown in my first post.
I'm assumming the java installation is correct, as I am able to debug with notebooks.
But can you specify the following things a bit more?
For building a stable devcontainer, use the appropriate base image, install the necessary extensions in devcontainer.json, and verify authentication settings.
I'm currently using base image 2.1.0, but have also used 2.0.6
https://mcr.microsoft.com/en-us/artifact/mar/msfabric/synapsevscode/fabric-synapse-vscode/tags
Which extensions do I need? I've noticed that in the microsoft and your github example for exampe there is no Azure Resource extention. And in another issue we've concluded that you need these extensions to authenticate to fabric.
https://github.com/jplane/pyspark-devcontainer/blob/main/.devcontainer/devcontainer.json
https://github.com/microsoft/SynapseVSCode/blob/main/samples/.devcontainer/mariner/Dockerfile
And which authentication settings do I need to verify?
Thanks for your answers!
Martijn Broeks