Data Operations and Support

A Spark step on an Amazon EMR on EC2 cluster failed overnight, and the cluster then terminated. An engineer needs to review the failed stage's tasks and executor metrics the next morning. What should the engineer use?

Show the answer

Correct answerA. Open the persistent Spark History Server for the cluster from the Amazon EMR console.

AWhy this is right: The persistent Spark History Server is hosted off-cluster and keeps application history for 30 days after the application ends.

BWhy not this: EMR on EC2 does not send Spark application logs to a CloudWatch Logs log group by default, so there is nothing to query.

CWhy not this: The primary node no longer exists after the cluster terminates, so its local event logs cannot be read.

DWhy not this: CloudTrail records AWS API activity such as step submission, not Spark stage and task execution details.

Amazon EMR's persistent application UIs host the Spark History Server off-cluster, so stage, task and executor details stay available for 30 days after the application ends, even after the cluster terminates. A terminated cluster's nodes are gone, and EMR on EC2 does not send Spark logs to CloudWatch Logs by default.