I'm using spark with yarn in cluster mode and I wouldlike to retrieve only the logs concerning spark in order to use the history server. Is there a way to do that instead of copy pasting it from the big log files ?
Yes, you can take logs of each task. You need to go to the yarn UI (8088 port) and copy id of the task. Then use command:
yarn logs --applicationId <TASK_ID>
For example:
yarn logs --applicationId application_1504771895665_0001
By this command you can see logs of each container that task used.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.