How to fix Job failed due to reason: at Sink 'SinkUpsert': Cannot broadcast the table that is larger than 8GB: 24 GB

Dhruva B 50 Reputation points
2024-04-05T03:32:29.15+00:00

Getting error as Job failed due to reason: at Sink 'SinkUpsert': Cannot broadcast the table that is larger than 8GB: 24 GB Actually I am not the exact code developer for this and that is why unable to understand the 8:24 logic kindly someone explain me or guide me towards some documentation to prevent this type of failures

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,142 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,453 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,601 Reputation points
    2024-04-05T12:13:35.1133333+00:00

    @Dhruva B - Thanks for the question and using MS Q&A platform.

    The error message you are seeing indicates that the table you are trying to broadcast is larger than the maximum size allowed, which is 8GB. In your case, the table size is 24GB, which is why the job is failing.

    To prevent this type of failure, you can try the following:

    1. Split the table into smaller chunks: You can split the table into smaller chunks and then broadcast each chunk separately. This will ensure that the size of each broadcasted table is within the allowed limit.
    2. Use a different sink: If splitting the table is not an option, you can try using a different sink that does not have the same size limitations.
    3. Increase the maximum broadcast size: If you need to broadcast large tables frequently, you can contact Azure support to request an increase in the maximum broadcast size limit.

    Wants to know more details on what could cause this error message, checkout this article Spark exception: Cannot broadcast the table larger than 8 GB: 10 GB which explains the root cause and how to resolve the issue.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.