Use the following procedure to configure Kafka.
By default, Kafka is installed at
/usr/hdp/2.2.0.0-2041/kafka
.Verify the values of the following configuration properties in the
server.properties
file:
Table 19.1. Kafka Configuration Properties
Kafka Configuration Property |
Description |
---|---|
broker.id |
Each Kafka broker requires a unique integer as an identifier. The default value is 0. |
port |
The port to which the Kafka socket server listens. The default value is 9092. |
log.dirs |
Comma-separated list of directories where Kafka log files are stored. The default value is /tmp/kafka-logs. |
zookeeper.connect |
The hostname or IP address of the host running Zookeeper and the port to which Zookeeper listens. The default value is localhost:2181. |
log.retention.hours |
The number of hours to wait before a Kafka log file is eligible for deletion. The default value is 168 hours (7 days). |