You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Ivanov, Evgeny" <Ev...@vtbcapital.ru> on 2022/06/01 15:51:39 UTC
Kafka as a service
Hi everyone,
I run Kafka server as a service on Linux with the following settings:
[Unit]
Description=Kafka
[Service]
Type=simple
Restart=on-abnormal
User=svc_kafka
ExecStart=/app/kafka/kafka_2.13-3.1.0/bin/kafka-server-start.sh /app/kafka/kafka_2.13-3.1.0/config/server.properties
ExecStop=/app/kafka/kafka_2.13-3.1.0/bin/kafka-server-stop.sh
[Install]
WantedBy=multi-user.target
And I noticed it doesn’t produce any logs in default KafkaServer.out but writes logs into /var/log/messages
[svc_kafka@smsk02ap432u ~]$ cd /app/kafka/kafka_2.13-3.1.0/logs
[svc_kafka@smsk02ap432u logs]$ ll
total 183776
-rw-r--r--. 1 svc_kafka sc_unix 34165 Jun 1 16:39 controller.log
-rwxrwxrwx. 1 svc_kafka sc_unix 13225 May 20 16:59 controller.log.2022-05-20-16
-rwxrwxrwx. 1 svc_kafka sc_unix 3252 May 20 17:59 controller.log.2022-05-20-17
Could you please advise how to fix that ?
Also it shows the following status of kafka service when I stop it by ‘sudo systemctl stop kafka’
[svc_kafka@smsk02ap432u log]$ systemctl status kafka
● kafka.service - Kafka
Loaded: loaded (/etc/systemd/system/kafka.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-06-01 16:39:47 MSK; 2h 10min ago
Process: 4101827 ExecStop=/app/kafka/kafka_2.13-3.1.0/bin/kafka-server-stop.sh (code=exited, status=0/SUCCESS)
Process: 4101387 ExecStart=/app/kafka/kafka_2.13-3.1.0/bin/kafka-server-start.sh /app/kafka/kafka_2.13-3.1.0/config/server.properties (code=exited, status=143)
Main PID: 4101387 (code=exited, status=143)
Do you know if it’s ok ?
Thank you in advance!
Best regards,
Evgeny
Business Application Support
VTB Capital
Telephone.: +7 (495) 960 9999 (ext.264423)
Mobile: +7 (916) 091-8939
________________________________
This email message (and any attachments) is confidential and may be privileged or otherwise protected from disclosure by applicable law. If you are not the intended recipient or have received this in error please notify the system manager, postmaster@vtbcapital.ru and remove this message and any attachments from your system. Any unauthorized dissemination, copying or other use of this message and/or any attachments is strictly prohibited and may constitute a breach of civil or criminal law.
JSC VTB Capital may monitor email traffic data and also the content of email.