Skip to content

How do I resolve "EC2 is out of capacity" or "EC2 QUOTA EXCEEDED" errors in Amazon EMR?

2 minute read
0

I want to resolve "EC2 is out of capacity" or "EC2 QUOTA EXCEEDED" errors in Amazon EMR.

Resolution

Amazon EC2 is out of capacity

You receive the "EC2 is out of capacity" error when the specified Availability Zone can't provision the requested Amazon Compute Cloud (Amazon EC2) instance types for your Amazon EMR cluster.

To resolve the "EC2 is out of capacity" error, take the following actions:

Amazon EC2 Quota exceeded

You receive the "EC2 QUOTA EXCEEDED" error when you reach your Amazon EC2 service quota for your specified AWS Region.

To resolve this error, complete the following steps:

  1. Open the Service Quotas console.
  2. Choose Dashboard and then choose Amazon Elastic Compute Cloud (Amazon EC2).
  3. Review your current service quotas.
    Note: Only running instances count toward service quotas, and the quota varies by Region. The quotas restrict the number of running instances based on instance count, instance type quotas, and instances that are allowed for each Region.
  4. If you need additional Amazon EC2 resources, then request a service quota increase.
  5. Monitor your service quota usage.

Best practices

Use the following best practices:

  • Implement multi Availability Zone retry strategies.
  • Plan your capacity needs in advance. Then, review and compare Amazon EC2 instance type capabilities before you select other options.
  • Carefully choose your subnet. The subnet you choose determines your Availability Zone.

Related information

Insufficient instance capacity

Configure Amazon EC2 instance types for use with Amazon EMR

Instance purchasing options in Amazon EMR

Plan, configure and launch Amazon EMR clusters

AWS OFFICIALUpdated 5 months ago