1. 程式人生 > >檢視spark任務日誌

檢視spark任務日誌

登入resource manager所在伺服器,

進入/var/log/hadoop-yarn/yarn

tail rm-audit.log  讀取日誌,找到如下內容:

2018-10-31 07:11:27,148 INFO resourcemanager.RMAuditLogger: USER=admin    OPERATION=Application Finished - Succeeded    TARGET=RMAppManager    RESULT=SUCCESS    APPID=application_1540980262416_0022

之後,su spark,切換到spark使用者下,執行:

yarn logs -applicationId application_1540980262416_0022

即可檢視spark任務的日誌