Comments on: Steps to Install Kafka on Ubuntu 20.04: 8 Easy Steps https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/ Get the latest stories and practical tips on all technologies that concern Data Analytics, Big Data Management, Data Migration, Data Integration, Data Pipelines, Data Modelling, and more. Tue, 27 Jan 2026 11:56:40 +0000 hourly 1 https://wordpress.org/?v=6.6.5 By: Kishan https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-226 Wed, 06 May 2020 07:21:00 +0000 https://hevodata.com/blog/?p=239#comment-226 Zookeeper telnet was giving me error

root@cicddashboard:~# sudo telnet localhost 2181
Trying ::1…
Connected to localhost.
Escape character is ‘^]’.

Connection closed by foreign host.

]]>
By: Harish Chilamanthula https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-184 Mon, 17 Feb 2020 05:53:00 +0000 https://hevodata.com/blog/?p=239#comment-184 I got the below error on checking the status of kafka.service:

● kafka.service – High-available, distributed message broker
Loaded: loaded (/etc/systemd/system/kafka.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-02-17 11:18:01 IST; 293ms ago
Process: 7860 ExecStart=/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties (code=exited, status=1/FAILURE)
Main PID: 7860 (code=exited, status=1/FAILURE)

Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,838] INFO [ZooKeeperClient Kafka server] Closing. (kafka.zookeeper.ZooKeeperClient)
Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,960] INFO Session: 0x1000001199a0004 closed (org.apache.zookeeper.ZooKeeper)
Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,960] INFO EventThread shut down for session: 0x1000001199a0004 (org.apache.zookeeper.ClientCnxn)
Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,965] INFO [ZooKeeperClient Kafka server] Closed. (kafka.zookeeper.ZooKeeperClient)
Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,972] INFO shut down completed (kafka.server.KafkaServer)
Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,973] ERROR Exiting Kafka. (kafka.server.KafkaServerStartable)
Feb 17 11:18:00 harish kafka-server-start.sh[7860]: [2020-02-17 11:18:00,977] INFO shutting down (kafka.server.KafkaServer)
Feb 17 11:18:01 harish systemd[1]: kafka.service: Main process exited, code=exited, status=1/FAILURE
Feb 17 11:18:01 harish systemd[1]: kafka.service: Unit entered failed state.
Feb 17 11:18:01 harish systemd[1]: kafka.service: Failed with result ‘exit-code’.

]]>
By: Zack Macomber https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-162 Tue, 24 Jul 2018 20:40:00 +0000 https://hevodata.com/blog/?p=239#comment-162 I have this error when checking the status of kafka.service:

● kafka.service – High-available, distributed message broker
Loaded: loaded (/etc/systemd/system/kafka.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2018-07-24 20:39:06 UTC; 5s ago
Process: 12058 ExecStart=/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties > /opt/kafka/server.log (code=exited, status=1/FAILURE)
Main PID: 12058 (code=exited, status=1/FAILURE)

Jul 24 20:39:05 hp-macomber-server systemd[1]: Started High-available, distributed message broker.
Jul 24 20:39:05 hp-macomber-server kafka-server-start.sh[12058]: [2018-07-24 20:39:05,857] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils
Jul 24 20:39:05 hp-macomber-server kafka-server-start.sh[12058]: Found non argument parameters: >,/opt/kafka/server.log
Jul 24 20:39:05 hp-macomber-server kafka-server-start.sh[12058]: Option Description
Jul 24 20:39:05 hp-macomber-server kafka-server-start.sh[12058]: —— ———–
Jul 24 20:39:05 hp-macomber-server kafka-server-start.sh[12058]: –override Optional property that should override values set in
Jul 24 20:39:05 hp-macomber-server kafka-server-start.sh[12058]: server.properties file
Jul 24 20:39:06 hp-macomber-server systemd[1]: kafka.service: Main process exited, code=exited, status=1/FAILURE
Jul 24 20:39:06 hp-macomber-server systemd[1]: kafka.service: Failed with result ‘exit-code’.

]]>
By: С П https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-152 Fri, 11 May 2018 13:16:00 +0000 https://hevodata.com/blog/?p=239#comment-152 Thanks, its very useful post!
But I’ve got the problem with kafka on Java 10 (message after trying to start) :
“…Unrecognized VM option ‘PrintGCDateStamps’
Error: Could not create the Java Virtual Machine.”

I changed kafka-run-class.sh file to repair it:
JAVA_MAJOR_VERSION=$($JAVA -version 2>&1 | sed -E -n ‘s/.* version “([0-9]*).*$/1/p’)
instead
JAVA_MAJOR_VERSION=$($JAVA -version 2>&1 | sed -E -n ‘s/.* version “([^.-]*).*”/1/p’)

]]>
By: Hevo https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-151 Wed, 25 Apr 2018 12:54:00 +0000 https://hevodata.com/blog/?p=239#comment-151 In reply to Yeming Huang.

Thanks a ton Yeming. We have edited the blog to include your suggestion.

]]>
By: Yeming Huang https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-150 Tue, 24 Apr 2018 16:22:00 +0000 https://hevodata.com/blog/?p=239#comment-150 Yo Sarad I tried it worked perfect.

One thing though, would be better to specify > /dev/null 2>&1 in your system.ctl file otherwise your syslog would be polluted.

My 2 cents.

]]>
By: Hevo Data Inc https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-149 Tue, 10 Apr 2018 14:31:00 +0000 https://hevodata.com/blog/?p=239#comment-149 In reply to SamSagaz.

Hi Sam,
You will have to enable the service with the command “sudo systemctl enable kafka.service” so that kafka starts up automatically on boot up (we have updated the same in the blog). Hope this helps.

]]>
By: SamSagaz https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-148 Sat, 07 Apr 2018 13:23:00 +0000 https://hevodata.com/blog/?p=239#comment-148 I’ve got the same problem, exactly. No auto start, but manual start works fine. Have created the file for auto start “/etc/systemd/syst…”, but seems to be ignoring it.

]]>
By: Andre Steenbergen https://hevodata.com/blog/how-to-install-kafka-on-ubuntu/#comment-147 Fri, 10 Nov 2017 16:01:00 +0000 https://hevodata.com/blog/?p=239#comment-147 Great blog post, I only have 1 problem with this setup. I guess zookeeper is not up in time, because at start up kafka won’t start up. If I log in and run the service kafka start command myself, there is no problem. Is there a way we can wait for zookeeper to start up?

]]>