![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kafka
超人不会飞_
这个作者很懒,什么都没留下…
展开
-
kafka创建生产者报错:Invalid partition given with record: 1 is not in the range [0...1)
原因是在kafka的server.properties文件中设置有默认的partition,num.patitions. 可修改分区默认值。partitions在是在创建topic的时候默认创建的配置文件中指定的partitions节点个数,只对新创建的topic生效。如果要自定义指定partition的值,可以通过命令实现。./bin/kafka-topics.sh --zookeeper ...原创 2020-03-03 20:32:05 · 5315 阅读 · 0 评论 -
Expiring 1 record(s) for topic1-0: 60010 ms has passed since batch creation plus linger time
org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for topic1-0: 60010 ms has passed since batch creation plus linger time远程连接kafka集群超时,写入数据失败问题排查:检查网络以及端口是否关闭telnet测试排查kaf...原创 2020-03-03 20:25:10 · 7228 阅读 · 3 评论