Installing Kafka Using Ambari

After Kafka is deployed and running, validate the installation. You can use the command-line
interface to create a Kafka topic, send test messages, and consume the
messages.

Click the Ambari "Services" tab.

In the Ambari "Actions" menu, select "Add Service." This starts the Add Service
wizard, displaying the Choose Services page. Some of the services are enabled by
default.

Scroll through the alphabetic list of components on the Choose Services page, and
select "Kafka".

Click Next to continue.

On the Assign Masters page, review the node assignments for Kafka nodes.

The following screen shows node assignment for a single-node Kafka cluster:

If you want Kafka to run with high availability, you must assign more than one
node for Kafka brokers, resulting in Kafka brokers running on multiple nodes.

Click the "+" symbol to add more broker nodes to the cluster:

The following screen shows node assignment for a multi-node Kafka cluster:

Click Next to continue.

On the Assign Slaves and Clients page, choose the nodes that you want to run
ZooKeeper clients:

Click Next to continue.

Ambari displays the Customize Services page, which lists a series of services:

For your initial configuration you should use the default values set by Ambari. If
Ambari prompts you with the message "Some configurations need your attention
before you can proceed," review the list of properties and provide the required
information.

When the wizard presents a summary of results, click "Complete" to finish
installing Kafka:

After Kafka is deployed and running, validate the installation. You can use the
command-line interface to create a Kafka topic, send test messages, and consume the
messages. For more information, see Validate Kafka in the Non-Ambari Cluster
Installation Guide.