Integrate

This is the part of the Apache ZooKeeper charm tutorial about using Apache ZooKeeper with other charms. Make sure to complete instruction from the Deploy page before reading further.

The main way to use the Apache ZooKeeper charm is to integrate it with another charm via Juju relations. For that reason we will deploy Apache Kafka charm and integrate them via the zookeeper interface.

Deploy Apache Kafka

Deploy Apache Kafka charm to the same model:

juju deploy kafka --channel 3/stable -n 3 --trust

Make sure Apache Kafka cluster is deployed by checking its status:

juju status --watch 1s

Wait until all units have active and idle status.

Integrate Apache ZooKeeper and Apache Kafka

Integrate Apache ZooKeeper and Apache Kafka applications for them to be able to work together:

juju integrate kafka zookeeper

Juju finds a common interface to integrate the charms together. In this case, it’s the zookeeper interface. See the interface’s documentation for more information.

Check the Juju applications status, including the information on existing relations:

juju status --relations --watch 1s

Next step

Continue to the Cleanup page of the tutorial to finish this Tutorial and free the resources.