Using Kafka operations
With the Confluent Platform installed, the administration, operation, and monitoring of Kafka become very simple. Let's review how to operate Kafka with the Confluent Platform.
Getting ready
For this recipe, Confluent should be installed, up, and running.
How to do it...
The commands in this section should be executed from the directory where the Confluent Platform is installed:
- To start ZooKeeper, Kafka, and the Schema Registry with one command, run:
$ confluent start schema-registry
The output of this command should be:
Starting zookeeperzookeeper is [UP]Starting kafkakafka is [UP]Starting schema-registryschema-registry is [UP]
Note
To execute the commands outside the installation directory, add Confluent's bin
directory to PATH
:export PATH=<path_to_confluent>/bin:$PATH
- To manually start each service with its own command, run:
$ ./bin/zookeeper-server-start ./etc/kafka/zookeeper.properties$ ./bin/kafka-server-start ./etc/kafka/server.properties$ ./bin/schema-registry-start...