kafka消费消息失败,原来是配置问题导致

14:46:14 [kafka-producer-network-thread | producer-1] ERROR o.s.k.s.LoggingProducerListener - Exception thrown when sending a message with key='null' and payload='{"depth":1,"direction":"SELL","highestPrice":1000.00000000,"items":[{"amount":2.00000000,"price":100...' to topic exchange-trade-plate:
org.apache.kafka.common.errors.TimeoutException: Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for exchange-trade-plate-0
14:46:14 [kafka-producer-network-thread | producer-1] ERROR o.s.k.s.LoggingProducerListener - Exception thrown when sending a message with key='null' and payload='{"depth":1,"direction":"BUY","highestPrice":800.00000000,"items":[{"amount":4.00000000,"price":800.0...' to topic exchange-trade-plate:
org.apache.kafka.common.errors.TimeoutException: Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for exchange-trade-plate-0
14:46:14 [kafka-producer-network-thread | producer-1] ERROR o.s.k.s.LoggingProducerListener - Exception thrown when sending a message with key='null' and payload='{"depth":1,"direction":"SELL","highestPrice":10.00000000,"items":[{"amount":105.80000000,"price":10....' to topic exchange-trade-plate:
org.apache.kafka.common.errors.TimeoutException: Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for exchange-trade-plate-0

将服务器kafka中配置文件server.properties配置内网IP和外网访问IP

broker.id=0
port=9092
host.name=172.31.1.200
advertised.host.name=47.244.122.144

你可能感兴趣的:(error)