Manual Install using Systemd on RHEL and CentOS
This topic provides instructions for installing a production-ready Confluent Platform configuration in a multi-node RHEL or CentOS
environment with a replicated ZooKeeper ensemble.
The YUM repositories provide packages for RHEL, CentOS, and Fedora-based distributions.
Important
You must complete these steps for each node in your cluster.
- Prerequisites
- Before installing Confluent Platform, your environment must have the following software and hardware requirements.
Get the Software
The YUM repositories provide packages for RHEL, CentOS, and Fedora-based distributions. You can install individual Confluent Platform
packages or the entire platform. For a list of available packages, see the documentation
or you can search the repository (yum search <package-name>
).
Install the curl
and which
tools.
sudo yum install curl which
Install the Confluent Platform public key. This key is used to sign packages in the YUM repository.
sudo rpm --import https://packages.confluent.io/rpm/6.1/archive.key
Navigate to /etc/yum.repos.d/
and create a file named confluent.repo
with these contents. This adds the Confluent
repositories. You must have the entries for both repositories, [Confluent.dist]
and [Confluent]
, as shown below.
[Confluent.dist]
name=Confluent repository (dist)
baseurl=https://packages.confluent.io/rpm/6.1/7
gpgcheck=1
gpgkey=https://packages.confluent.io/rpm/6.1/archive.key
enabled=1
[Confluent]
name=Confluent repository
baseurl=https://packages.confluent.io/rpm/6.1
gpgcheck=1
gpgkey=https://packages.confluent.io/rpm/6.1/archive.key
enabled=1
Clear the YUM caches
and install Confluent Platform.
Start Confluent Platform
Start Confluent Platform and its components using systemd service unit files. You can start immediately by using the
systemctl start
command or enable for automatic startup by using the systemctl enable
command. These instructions
use the syntax for immediate startup.
Tip
ZooKeeper, Kafka, and Schema Registry must be started in this specific order, and must be started before any other components.
Start ZooKeeper.
sudo systemctl start confluent-zookeeper
Start Kafka.
Start Schema Registry.
sudo systemctl start confluent-schema-registry
Start other Confluent Platform components as desired.
Control Center
sudo systemctl start confluent-control-center
Kafka Connect
sudo systemctl start confluent-kafka-connect
Confluent REST Proxy
sudo systemctl start confluent-kafka-rest
ksqlDB
sudo systemctl start confluent-ksqldb
Uninstall
Run this command to remove Confluent Platform, where <component-name>
is either confluent-platform
(Confluent Platform) or confluent-community-2.13
(Confluent Platform using only Confluent Community components).
sudo yum autoremove <component-name>
For example, run this command to remove Confluent Platform:
sudo yum autoremove confluent-platform