๋ฐ์ํ
๐ซ ERROR
HBase์์ ConnectionLoss ์๋ฌ๊ฐ ๋ฐ์ํด์ zookeeper ๋ก๊ทธ๋ฅผ ํ์ธํด ๋ณด๋,
Too many Connection ์๋ฌ๊ฐ ๋ฐ์ํ๊ณ ์์์ต๋๋ค.
## Hbase Error
KeeperErrorCode = ConnectionLoss for /hbase
## Zookeeper Error
Too many connections from /x.x.x.x - max is 60
๐ก SOLVED
๋ ๊ฐ์ง ๋ฐฉ๋ฒ์ด ์์ต๋๋ค.
1. ์๋ ๋ช ๋ น์ด๋ก zookeeper์ ์ ์ํ๋ ํ๋ก์ธ์ค๋ฅผ ํ์ธํ๋ฉด ์๋ ๊ฒฐ๊ณผ์ ๊ฐ์ด ํ๋์ ํ๋ก์ธ์ค์์ ๋ง์ connection์ ์ก๊ณ ์์ต๋๋ค. ์ ๊ฐ์ ๊ฒฝ์ฐ๋ Ranger์๊ณ Ranger ์ฌ๊ธฐ๋ ํ Zookeeper connection ์ 30 ๋ฐ์ผ๋ก ์ค์ด ๋ค์์ต๋๋ค.
2. ๋ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ผ๋ก๋ zoo.cfg์์ maxClientCnxns ์๋ฅผ ๋๋ ค ์ค๋๋ค. (default = 60)
netstat -nape | awk '{if($5 =="x.x.x.x:2181")print $4, $9;}'
x.x.x.x:56184 149004/java
x.x.x.x:55960 149004/java
x.x.x.x:56336 149004/java
x.x.x.x:56238 149004/java
x.x.x.x:56276 149004/java
x.x.x.x:56324 160755/java
x.x.x.x:56284 149004/java
x.x.x.x:56396 149004/java
x.x.x.x:56348 149004/java
x.x.x.x:55892 149004/java
x.x.x.x:55882 149004/java
x.x.x.x:55870 160755/java
x.x.x.x:56242 149004/java
x.x.x.x:56290 149004/java
x.x.x.x:56090 149004/java
x.x.x.x:55910 149004/java
x.x.x.x:56392 149004/java
x.x.x.x:56244 149004/java
x.x.x.x:56350 149004/java
x.x.x.x:56362 149004/java
x.x.x.x:56118 149004/java
x.x.x.x:56112 149004/java
x.x.x.x:56306 149004/java
x.x.x.x:55854 149004/java
x.x.x.x:56046 149004/java
x.x.x.x:56210 149004/java
x.x.x.x:56372 149004/java
x.x.x.x:56282 149004/java
x.x.x.x:56368 149004/java
x.x.x.x:56234 149004/java
x.x.x.x:56342 149004/java
x.x.x.x:55864 149004/java
x.x.x.x:56332 149004/java
x.x.x.x:55896 149004/java