빅데이터/spark
[spark] 스파크 컨테이너 메모리 오류시 처리 방안
hs_seo
2018. 2. 13. 09:46
스파크 실행중 메모리 부족으로 다음과 같은 오류가 발생하는 경우가 있다.
Diagnostics: Container [pid=1,containerID=container_000001] is running beyond physical memory limits. Current usage: 1.4 GB of 1.4 GB physical memory used; 3.1 GB of 13.8 GB virtual memory used. Killing container.
이런 경우 다음과 같이 드라이버와 executor의 메모리 설정을 해주면 해결할 수 있다.
spark.yarn.am.memory=3072M
spark.driver.memory=3072M
spark.executor.memory=4736M
spark.executor.cores=4
반응형