While running a pyspark job and as the input grows, I notice that I keep getting memory errors like the following...
ERROR cluster.YarnScheduler: Lost executor 12 on compute-2-10.local:
Container killed by YARN for exceeding memory limits. 1.5 GB of 1.5 GB
physical memory used. Consider boosting spark.yarn.executor.memoryOverhead.
While it will successfully complete on a smaller input even when the error is repeated through execution, it eventually dies as the input size increases.
I have ~20,000,000 million rows that I need to filter out ~661,000 rows from that. I can't think of any other way of dealing with this besides using subtract given the format of the key.