Monitoring and debugging Spark applications from Spark labs
Before you begin
- Install a desktop version of Visual Studio Code.
- Ensure that you have public-private SSH key pair to establish an SSH connection with the Spark lab. For more information about generating the key, open watsonx.data extension in Visual Studio Code, go to Details tab, see Set up SSH on your machine section.
- Install the extension
Remote - SSHfrom Visual Studio Code marketplace.
About this task
- Debugging the Spark application from Spark labs
- The Spark lab also allows you to debug the Spark application that you submit. To do that:
- Accessing Spark UI from Spark labs
- The Spark user interface (UI) allows you to monitor various aspects of running a Spark
application. For more information, see Spark user
interface. Expose Spark UI to access it from Spark labs. To do that:
-
Go to Visual Studio Code > Terminal and select the Ports tab.
-
Click Forward a Port. Type
4440and press Enter. You can now access Spark UI from Spark labs. Open a web browser and enter the URL in the format -localhost:4440. The Spark UI opens, which allows you to inspect Spark applications in the Spark labs. You can view the following details :- The Event timeline displays a graphical view of the timeline and the events.
- Different stages of execution, the storage used, the Spark environment, and executor (memory and driver) details.
-