Ask Your Question
0

zookeeper 관련해서 문의드립니다.

asked 2019-04-15 11:32:29 +0900

simpler gravatar image

updated 2019-04-15 12:24:26 +0900

해당 서버의 디스크가 모자른 상태에서 여러 서비스들이 동작을 못한 상태에서, 파일을 정리하고 여러 서비스들을 재시작 하였습니다. 다른 것들은 정상적으로 작동을 하였으나 zookeeper만 아래와 같은 상태인데요. 혹시 원인을 알 수 있을까요?

● zookeeper.service - LSB: centralized coordination service Loaded: loaded (/etc/init.d/zookeeper; bad; vendor preset: enabled) Active: active (exited) since Mon 2019-04-15 10:49:51 KST; 13min ago Docs: man:systemd-sysv-generator(8) Process: 2692 ExecStop=/etc/init.d/zookeeper stop (code=exited, status=0/SUCCESS) Process: 2704 ExecStart=/etc/init.d/zookeeper start (code=exited, status=0/SUCCESS) Tasks: 0 Memory: 0B CPU: 0

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2019-04-15 12:23:20 +0900

simpler gravatar image

zookeeper.log 로그는 아래와 같습니다. 2019-04-15 12:16:18,202 - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /etc/zookeeper/conf/zoo.cfg 2019-04-15 12:16:18,211 - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 2019-04-15 12:16:18,211 - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 2019-04-15 12:16:18,211 - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled. 2019-04-15 12:16:18,232 - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /etc/zookeeper/conf/zoo.cfg 2019-04-15 12:16:18,232 - INFO [main:ZooKeeperServerMain@95] - Starting server 2019-04-15 12:16:18,245 - INFO [main:Environment@100] - Server environment:host.name=xodbs 2019-04-15 12:16:18,246 - INFO [main:Environment@100] - Server environment:java.version=1.8.0_191 2019-04-15 12:16:18,246 - INFO [main:Environment@100] - Server environment:java.vendor=Oracle Corporation 2019-04-15 12:16:18,246 - INFO [main:Environment@100] - Server environment:java.io.tmpdir=/tmp 2019-04-15 12:16:18,246 - INFO [main:Environment@100] - Server environment:java.compiler=<na> 2019-04-15 12:16:18,250 - INFO [main:Environment@100] - Server environment:os.name=Linux 2019-04-15 12:16:18,250 - INFO [main:Environment@100] - Server environment:os.arch=amd64 2019-04-15 12:16:18,250 - INFO [main:Environment@100] - Server environment:os.version=4.4.0-141-generic 2019-04-15 12:16:18,251 - INFO [main:Environment@100] - Server environment:user.name=zookeeper 2019-04-15 12:16:18,251 - INFO [main:Environment@100] - Server environment:user.home=/var/lib/zookeeper 2019-04-15 12:16:18,251 - INFO [main:Environment@100] - Server environment:user.dir=/ 2019-04-15 12:16:18,260 - INFO [main:ZooKeeperServer@787] - tickTime set to 2000 2019-04-15 12:16:18,261 - INFO [main:ZooKeeperServer@796] - minSessionTimeout set to -1 2019-04-15 12:16:18,261 - INFO [main:ZooKeeperServer@805] - maxSessionTimeout set to -1 2019-04-15 12:16:18,276 - INFO [main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:2181 2019-04-15 12:16:18,295 - INFO [main:FileSnap@83] - Reading snapshot /var/lib/zookeeper/version-2/snapshot.dc353 2019-04-15 12:16:19,907 - ERROR [main:Util@239] - Last transaction was partial. 2019-04-15 12:16:19,914 - ERROR [main:ZooKeeperServerMain@63] - Unexpected exception, exiting abnormally java.io.EOFException at java.io.DataInputStream.readInt(DataInputStream.java:392) at org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63) at org.apache.zookeeper.server.persistence.FileHeader.deserialize(FileHeader.java:64) at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.inStreamCreated(FileTxnLog.java:581) at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.createInputArchive(FileTxnLog.java:600) at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.goToNextLog(FileTxnLog.java:566) at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.next(FileTxnLog.java:648) at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:158) at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223) at org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.java:280) at org.apache.zookeeper.server.ZooKeeperServer.startdata(ZooKeeperServer.java:407) at org.apache.zookeeper.server.NIOServerCnxnFactory.startup(NIOServerCnxnFactory.java:118) at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:113) at org.apache.zookeeper ... (more)

edit flag offensive delete link more

Comments

/var/lib/zookeeper/version-2 디렉토리 안에 있는 파일들을 삭제한 후 다시 실행해볼 수 있을까요?

gigone.lee gravatar imagegigone.lee ( 2019-04-15 13:28:04 +0900 )edit

zookeeper 삭제후 재설치로 해결했습니다.

simpler gravatar imagesimpler ( 2019-04-15 15:08:32 +0900 )edit
0

answered 2019-04-15 11:36:45 +0900

gigone.lee gravatar image

안녕하세요 아이펀팩토리입니다.

systemctl restart zookeeper

등으로 주키퍼 서비스를 재시작해도 실행이 되지 않는다면 /var/log/zookeeper/ 디렉토리에 있는 zookeeper.log 내용도 함께 볼 수 있을까요?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-04-15 11:32:29 +0900

Seen: 21 times

Last updated: Apr 15