Created on
03-28-2023
12:40 AM
- last edited on
06-02-2026
02:52 AM
by
VidyaSargur
Where are the Spark application logs located, and what is the default path of that directory?
Created 03-28-2023 02:22 AM
Hi @ComNic
When you run the spark application in yarn mode, Spark application will launch executors/containers in different node. In each node, logs are stored. When log aggregation is happen all logs are merged and we can access the logs by running following command:
yarn logs -applicationId <Application_ID>
The container logs should be under yarn.nodemanager.log-dirs path.
Created 03-28-2023 02:12 AM
@ComNic, Welcome to our community! To help you get the best possible answer, I have tagged in our Spark experts @RangaReddy @Babasaheb who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 03-28-2023 02:22 AM
Hi @ComNic
When you run the spark application in yarn mode, Spark application will launch executors/containers in different node. In each node, logs are stored. When log aggregation is happen all logs are merged and we can access the logs by running following command:
yarn logs -applicationId <Application_ID>
The container logs should be under yarn.nodemanager.log-dirs path.
Created 03-30-2023 02:23 AM
Created 04-02-2023 09:48 PM
@ComNic, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.
Regards,
Vidya Sargur,