Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why spark executor receives SIGTERM?

I am using Spark API (Spark core API, not Stream,SQL etc.) I often see this kind of error in spark dumped log: Spark environment: 1.3.1 yarn-client

ERROR executor.CoarseGrainedExecutorBackend: RECEIVED SIGNAL 15: SIGTERM
  1. Who triggers SIGTERM. YARN,Spark or myself?
  2. Will this signal terminate Spark Executor? If not, wow will it affect spark program.

I do press Ctrl+c, but that whould be SIGINT. If YARN kill executor, that would be SIGKILL.

like image 829
worldterminator Avatar asked Oct 15 '15 06:10

worldterminator


1 Answers

You will likely find the reason in yarn logs. If you activated log aggregation, you can type

yarn logs -applicationId [app_id]

and lookup for exceptions.

like image 84
Bacon Avatar answered Oct 04 '22 09:10

Bacon