Outside the Intranet web
10.100.217.213:9092, 2:9092
10.100.217.214:9092, 2:9093
10.100.217.215:9092, 2:9094
In the network, the production and consumption are no problem
Try on the server. The properties file configuration
Listeners=PLAINTEXT://10.100.247.213:9092
Advertised. Listeners=PLAINTEXT://2:9092
Perform./kafka - the console - consumer. Sh command, an error: LEADER_NOT_AVAILABLE
The public IP network in the machine can't access, excuse me how should configuration, thanks a lot!
CodePudding user response:
Listeners and advertised. Listeners are written as PLAINTEXT://hostname: 9092, ordered the consumption are replaced with the hostname is IP, but the network client hosts to configure the hostname mapping network IP, network IP client configuration into the network