0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ZooKeeper Serverが起動しているか確認するクールな一つの方法

Posted at

ZooKeepeerはなんだか謎の多い製品で、今はもう直ってるのか知らないですが、起動成功時と起動失敗時のメッセージが全く同一という狂気じみた仕様だったりもしました。

ZooKeeperが吐く起動メッセージなんて信用できないので、ZooKeeperのサービスが行われているかどうか動作しているサービスに聞くと良いです。

その専用のコマンド、ruok(多分are you ok?の意味)が用意されています。

$  telnet localhost 2181
して
ruok

と打ち込むと

imokConnection closed by foreign host.

と帰ってきます。わかりにくいですが「imok」と帰ってきています。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?