# Container exited with a non-zero exit code 137

**URL:** <https://discuss.hail.is/t/container-exited-with-a-non-zero-exit-code-137/2276>\
**Category:** Hail Query & hailctl\
**Created:** [September 30, 2021, 3:03pm UTC](https://discuss.hail.is/t/container-exited-with-a-non-zero-exit-code-137/2276 "2021-09-30T15:03:25Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![chrisvittal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/chrisvittal/32/327_2.png) [@chrisvittal](https://discuss.hail.is/u/chrisvittal)\
**Post date:** [October 6, 2021, 9:05pm UTC](https://discuss.hail.is/t/container-exited-with-a-non-zero-exit-code-137/2276/11 "2021-10-06T21:05:28Z")

</div>

The answer here appears to be that we didn’t set the executor memory high enough. N1-highmem-8 machines have 52GB of memory so we’ll need to take up more than half of that in order for YARN to pack only one executor per node. I set `spark.executor.memory=40g` and `spark.executor.memoryOverhead=4000` and am re-running your workload. It appears to be working now.

---

_[View the full topic](https://discuss.hail.is/t/container-exited-with-a-non-zero-exit-code-137/2276)._
