Hello,
You get these errors when there aren't enough IP addresses available for the AWS Glue job. Here are two common reasons why these errors might happen:
- When you run a job with connection(Contains your VPC,Subnet), AWS Glue sets up elastic network interfaces that allow your job to connect securely to other resources in the VPC. Each elastic network interface gets a private IP address.
For example: If you're running a job with 20 DPUs, you can calculate the number of IP addresses as follows:
With AWS Glue 2.0/3.0 : 20 DPU = 19 Workers (executors) + 1 master (driver) = 20 IP addresses
- Multiple AWS services are using the same subnet. These services might be using many of the subnet's available IP addresses.
You need to make sure that enough ip addresses should be available when you run a Glue job with connection. To mitigate this kind of issue better to use a subnet with more number of free ip addresses.
Reference:
https://aws.amazon.com/premiumsupport/knowledge-center/glue-specified-subnet-free-addresses/
Reason for failure: Connection starvation from Amazon RDS. RDS could not handle the huge demand for connections. Once this issue was fixed from RDS end (I don't have the details), the Glue jobs ran fine.
Relevant questions
How to find root cause of SparkContext shutdown in AWS Glue job
asked a month agoAWS Glue Job could not be found issue
asked 4 months agoAn error occurred while calling o95.pyWriteDynamicFrame.
asked 6 months agoAWS Glue retry a job after an execution error
Accepted Answerasked 4 months agoAn error occurred while calling o352.pyWriteDynamicFrame. Job 1 cancelled because SparkContext was shut down caused by threshold for consecutive task creation reached
asked a month agoGlue Job Error (An error occurred while calling o100.pyWriteDynamicFrame. Illegal empty schema)
Accepted Answerasked 5 months agoAWS Glue gives error: "An error occurred while calling o285.save. File already exists:"
asked 8 months agoAn error occurred while calling o128.pyWriteDynamicFrame. Record is incomplete.
asked 5 months agoAn error occurred while calling o280.pyWriteDynamicFrame
asked 4 years agoGlue ETL PySpark Job Fails after Upgrade from Glue Version 2.0 to 3.0 error occurred while calling pyWriteDynamicFrame EOFException occurred while reading the port number from pyspark.daemon's stdout
asked 6 months ago