๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸฆŒImpala

[Impala] memory limit exceeded

by _viper_ 2021. 8. 19.
๋ฐ˜์‘ํ˜•

๐Ÿšซ ERROR

Memory limit exceeded: Error occurred on backend impala-executor-000-1:27000 by fragment 
ce406efbcc638b19:6306d59800000011 Memory left in process limit: 80.72 GB Memory left in query limit: -270.99 MB Query
(ce406efbcc638b19:6306d59800000000): memory limit exceeded. 
Limit=2.00 GB Reservation=642.00 MB ReservationLimit=1.60 GB OtherMemory=1.64 GB Total=2.26 GB Peak=2.26 GB Fragment

 

๐Ÿ’ก SOLVED

  • ๊ธฐ๋ณธ executor ๋ฉ”๋ชจ๋ฆฌ๊ฐ€ 2gb๋กœ ์„ค์ •๋˜์–ด ์žˆ์–ด ์•„๋ž˜ ๋ช…๋ น์–ด๋กœ MEM_LIMIT ๊ฐ’์„ ๋Š˜๋ ค์คŒ (hue์—์„œ ์‹คํ–‰ ๊ฐ€๋Šฅ)
  • ๋ณดํ†ต 100GB ์ด์ƒ ์„ค์ • ํ•ด๋†“๊ธฐ๋•Œ๋ฌธ์— ์•„๋ž˜ ์˜ต์…˜์€ ํฌ๊ฒŒ ์„ค์ •ํ•  ๊ฒฝ์šฐ๋Š” ์—†์Œ
SET MEM_LIMIT=4gb;

 

  • ์œ„ ๋ฉ”๋ชจ๋ฆฌ ๋ถ€์กฑ ์—๋Ÿฌ๋ฅผ ํšŒํ”ผํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ํ…Œ์ด๋ธ” ํ†ต๊ณ„ ์ •๋ณด ์ˆ˜์ง‘ํ•˜์—ฌ ์ฟผ๋ฆฌ ์„ฑ๋Šฅ์„ ๋†’์—ฌ์ฃผ๋Š” ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Œ
COMPUTE STATS {TABLE_NAME}

 

  • ์ถ”๊ฐ€๋กœ ํ…Œ์ด๋ธ” ์ƒํƒœ ํ™•์ธ ๋ช…๋ น์–ด
SHOW TABLE STATS {TABLE_NAME}

 

 

๐Ÿ”Ž ์ฐธ๊ณ 

https://heum-story.tistory.com/205

 

impala ๋ช…๋ น์–ด

Hue์—์„œ Impala ์˜ต์…˜ ์„ค์ • ๋ฐ ํ™•์ธ ๋ช…๋ น์–ด -Impala ์˜ต์…˜ ๊ฐ’ ํ™•์ธ SET ALL; -ํŒŒ์ผ์„ ๋ถ„ํ• ํ•˜์ง€ ์•Š๊ณ  1๊ฐœ ํŒŒ์ผ๋กœ ์ƒ์„ฑํ•˜๊ณ  ์‹ถ์„ ๋•Œ ์•„๋ž˜ ์˜ต์…˜ ์ ์šฉ ํ›„ insert ์ฟผ๋ฆฌ ์‹คํ–‰ SET NUM_NODES=1; -impala shell ์ ‘์† impala..

heum-story.tistory.com