Yikes! Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/), Path(/user/kafka-manager)]] after [5000 ms]

I am looking at Yahoo Kafka manager as admin console for my kafka cluster. I followed the instruction on the github repo to build the artificat. (But skipped the running instruction section.)

My local environment is windows.

shrik@DESKTOP-GLB3R08 C:\kafka-manager-\bin
> kafka-manager.bat

i got the kafka manager ui at http://localhost:9000, but i tried to add kafka cluster i got the below error on the screen

Yikes! Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/), Path(/user/kafka-manager)]] after [5000 ms]

and following error in log file

[warn] o.a.c.ConnectionState – Connection attempt unsuccessful after 61188 (greater than max timeout of 60000). Resetting connection and trying again with a new connection.
[info] o.a.z.ZooKeeper – Initiating client connection, connectString=kafka-manager-zookeeper:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@628bc91a
[error] a.a.OneForOneStrategy – exception during creation
akka.actor.ActorInitializationException: exception during creation
at akka.actor.ActorInitializationException$.apply(Actor.scala:166) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at akka.actor.ActorCell.create(ActorCell.scala:596) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456) ~[com.typesafe.akka.akka-actor_2.11-2.3.14.jar:na]

The issue was i did not have zookeeper host configured correctly.

There 2 ways you can set this either by command line

kafka-manager -Dkafka-manager.zkhosts=”localhost:2181″ -Dhttp.port=9999


via application.conf property file.
kafka-manager.zkhosts=”kafka-manager-zookeeper:2181″ # this is default value, change it to point to zk instance.

(-Dhttp.port parameter is port number for Kafka manager application, so it will run on 9999, instead default port of 9000).



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s