aws compute_error ai_generated true

Step failed with status FAILED

ID: aws/aws-emr-step-failed

Also available as: JSON · Markdown
75%Fix Rate
80%Confidence
60Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
2 active

Root Cause

An EMR step (Spark, Hive, etc.) failed due to application errors, resource exhaustion, or configuration issues.

generic

Workarounds

  1. 85% success Check the step's stderr log in S3 for the specific error
    aws emr describe-step --cluster-id CLUSTER_ID --step-id STEP_ID to get log URI, then check s3://LOG_URI/steps/STEP_ID/stderr.gz

    Sources: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-manage-view-web-log-files.html

  2. 78% success Run the step in debug mode or on a smaller dataset first
    Add --conf spark.driver.extraJavaOptions=-Dlog4j.configuration=... for verbose logging, test with subset of data

    Sources: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-troubleshoot-failed.html

Dead Ends

Common approaches that don't work:

  1. Increase cluster size without checking the actual error 70% fail

    Many step failures are due to application bugs or misconfigured scripts, not resource limits

  2. Downgrade EMR version to fix step failures 75% fail

    Older versions may have different bugs; the step script itself is usually the issue

Error Chain

Preceded by:
Frequently confused with: