I am using kafka_2.12-0.10.2.1:
vi config / server.properties
add line below:
listeners=PLAINTEXT://localhost:9092
- There is no need to modify advertised users, since it takes the value from the std listener property.
The host name and port broker will advertise manufacturers and consumers. If not installed,
- it uses the value for "listeners" if configured
. Otherwise, it will use the value returned from java.net.InetAddress.getCanonicalHostName ().
stop the Kafka broker:
bin/kafka-server-stop.sh
restart broker:
bin/kafka-server-start.sh -daemon config/server.properties
and now you should not see any problems.
Dean Jain Jun 22 '17 at 6:25 2017-06-22 06:25
source share