Can't start Zookeeper Service on Centos 7

General support questions
Post Reply
Spencer_98
Posts: 1
Joined: 2020/10/10 08:37:00

Can't start Zookeeper Service on Centos 7

Post by Spencer_98 » 2020/10/10 08:38:56

Paths are correct, I don't know why I can't start kafka service, all lines, log files, etc and do not say what the Issue is... :/

I'm trying to install kafka on my Centos 7/8 and there is no Issue description I can figure out.

zookeeper.service file:

[Unit]
Requires=network.target remote-fs.target provitalize reviews
After=network.target remote-fs.target

[Service]
Type=simpleUser=kafka

ExecStart=/home/kafka/kafka/bin/zookeeper-server-start.sh /home/kafka/kafka/config/zookeeper.properties
ExecStop=/home/kafka/kafka/bin/zookeeper-server-stop.shRestart=on-abnormal

[Install]
WantedBy=multi-user.target
kafka.service file:
Last edited by Spencer_98 on 2020/10/10 12:03:56, edited 2 times in total.

User avatar
TrevorH
Forum Moderator
Posts: 29681
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't start Zookeeper Service on Centos 7

Post by TrevorH » 2020/10/10 11:35:57

Type=simpleUser=kafka
Might want to start by correcting that which should be on 2 separate lines. That means the User= bit will have been ignored and if it actually did try to start it rather than just error out, it will have run as root and any files it created while it was running will be owned by root and inaccessible to the 'kafka' user when you correct it.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”