Hi,
I am new in apache kafka. I am getting the below error.
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
12:28:40.463 [main] FATAL kafka.server.KafkaServer - Fatal error during KafkaServer startup. Prepare to shutdown
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223) ~[zkclient-0.7.jar:0.7]
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155) ~[zkclient-0.7.jar:0.7]
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129) ~[zkclient-0.7.jar:0.7]
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89) ~[kafka_2.11-0.9.0.0.jar:?]
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71) ~[kafka_2.11-0.9.0.0.jar:?]
at kafka.server.KafkaServer.initZk(KafkaServer.scala:278) [kafka_2.11-0.9.0.0.jar:?]
at kafka.server.KafkaServer.startup(KafkaServer.scala:168) [kafka_2.11-0.9.0.0.jar:?]
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) [kafka_2.11-0.9.0.0.jar:?]
at kafka.Kafka$.main(Kafka.scala:67) [kafka_2.11-0.9.0.0.jar:?]
at kafka.Kafka.main(Kafka.scala) [kafka_2.11-0.9.0.0.jar:?]
12:28:40.502 [main] FATAL kafka.server.KafkaServerStartable - Fatal error during KafkaServerStartable startup. Prepare to shutdown
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223) ~[zkclient-0.7.jar:0.7]
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155) ~[zkclient-0.7.jar:0.7]
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129) ~[zkclient-0.7.jar:0.7]
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89) ~[kafka_2.11-0.9.0.0.jar:?]
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71) ~[kafka_2.11-0.9.0.0.jar:?]
at kafka.server.KafkaServer.initZk(KafkaServer.scala:278) ~[kafka_2.11-0.9.0.0.jar:?]
at kafka.server.KafkaServer.startup(KafkaServer.scala:168) ~[kafka_2.11-0.9.0.0.jar:?]
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) [kafka_2.11-0.9.0.0.jar:?]
at kafka.Kafka$.main(Kafka.scala:67) [kafka_2.11-0.9.0.0.jar:?]
at kafka.Kafka.main(Kafka.scala) [kafka_2.11-0.9.0.0.jar:?]
Can someone tell me why I'm getting this error?
Thank You