java中kafka开发遇到的报错

1.kafka.common.ConsumerRebalanceFailedException
在使用高级API过程中,一般出现这个问题是zookeeper.sync.time.ms时间间隔配置过短,不排除有其他原因引起


2.KafkaException 
UnresolvedAddressException 

解决:
在C:\Windows\System32\drivers\etc\hosts
文件中加入ip与机器名映射






4.
WARN [ConsumerFetcherThread-console-consumer-75859_cache02-1516181900247-7ea5ae70-0-1]: 
Error in fetch to broker 1, request Name: FetchRequest; Version: 3; 
CorrelationId: 13879; ClientId: console-consumer-75859; ReplicaId: -1;
 MaxWait: 100 ms; MinBytes: 1 bytes; MaxBytes:2147483647 bytes; 
 RequestInfo: (access-log-0,PartitionFetchInfo(0,1048576)) (kafka.consumer.ConsumerFetcherThread)
java.nio.channels.ClosedChannelException



你可能感兴趣的:(kafka)