Azure Databricks error- The output of the notebook is too large. Cause: rpc response

Viewed 1302

Error Message - job failed with error message The output of the notebook is too large. Cause: rpc response (of 20972488 bytes) exceeds limit of 20971520 bytes

Details: We are using databricks notebooks to run the job. Job is running on job cluster. This is a streaming job. Job started failing with above mentioned error.

We do not have any display(), show(), print(), explain method in the job.

We are not using awaitAnyTermination method in the job as well.

We also tried adding "spark.databricks.driver.disableScalaOutput true" to the job but it still did not work. Job is failing with same error.

We have followed all the steps mentioned in this document - https://docs.microsoft.com/en-us/azure/databricks/kb/jobs/job-cluster-limit-nb-output

Do we have any option to resolve this issue or to find out exactly which commands output is causing it to go above 20MB limit.

1 Answers

See the docs regarding structured streaming in prod.
I would recommend migrating to workflows based on jar jobs because:

Notebook workflows are not supported with long-running jobs. Therefore we don’t recommend using notebook workflows in your streaming jobs.
Related