Go to the Confluent Platform installation directory (/usr/local/kafka/ for macOS users and /opt/kafka/ for Linux users) and type the following:
> cd /usr/local/confluent-5.0.0
To start Confluent Platform, run the following:
> bin/confluent start
This command-line interface is intended for development only, not for production:
https://docs.confluent.io/current/cli/index.html
The output is similar to what is shown in the following code snippet:
Using CONFLUENT_CURRENT: /var/folders/nc/4jrpd1w5563crr_np997zp980000gn/T/confluent.q3uxpyAt
Starting zookeeper
zookeeper is [UP]
Starting kafka
kafka is [UP]
Starting schema-registry
schema-registry is [UP]
Starting kafka-rest
kafka-rest is [UP]
Starting connect
connect is [UP]
Starting ksql-server
ksql-server is [UP]
Starting control-center
control-center is [UP]
As indicated by the command output, Confluent Platform automatically starts in this order: Zookeeper, Kafka, Schema Registry, REST proxy, Kafka Connect, KSQL, and the Confluent Control Center.
To access the Confluent Control Center running in your local, go to http://localhost:9021, as shown in Figure 1.5:
There are other commands for Confluent Platform.
To get the status of all services or the status of a specific service along with its dependencies, enter the following:
> bin/confluent status
To stop all services or a specific service along with the services depending on it, enter the following:
> bin/confluent stop
To delete the data and logs of the current Confluent Platform, type the following:
> bin/confluent destroy