How to install zookeeper as a service on CentOS 7

I am trying to install zookeeper on CentOS 7 using yum install zookeeperor yum install zookeeperd, but it throws:There is no zookeeper package available.

+6
source share
2 answers

You need to add a repo containing zookeeper. You can do this with:

yum install https://archive.cloudera.com/cdh5/one-click-install/redhat/7/x86_64/cloudera-cdh-5-0.x86_64.rpm

Subsequently, you can install the zookeeper as usual.

See the docs here:

http://www.cloudera.com/documentation/enterprise/5-8-x/topics/cdh_ig_zookeeper_package_install.html http://www.cloudera.com/documentation/enterprise/5-8-x/topics/cdh_ig_cdh5_install.html

+9
source

, cloudera, Apache Bigtop. Apache Zookeeper.

CentOS 7.

Zookeeper, yum install zookeeper.

, systemd, , .

[Unit]
Description=Zookeeper
After=syslog.target

[Service]
SyslogIdentifier=zookeeper
TimeoutStartSec=10min
Type=forking
ExecStart=/usr/lib/zookeeper/bin/zkServer.sh start
ExecStop=/usr/lib/zookeeper/bin/zkServer.sh stop

[Install]
WantedBy=multi-user.target
+6

Source: https://habr.com/ru/post/1014009/


All Articles