kafka用命令发送数据直接终端卡死

石头剪刀布 发表于: 2019-03-29   最后更新时间: 2019-03-29 16:37:19   2,953 游览

环境说明

  1. 系统:mac pro
  2. kafka版本:2.1.1

问题

通过kafka-console-producer 去打数据,数据长度超过1024就直接导致终端卡死了。小于1024就正常发送。有什么解决方式吗?
示例数据:sadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhusadsczxzjiljjkhjhvcuhsahvhiohhus
超过这个数据长度就终端直接卡死了。

尝试

  1. 通过service.properties修改了配置:socket.send.buffer.bytes=1024000,并没有效果
  2. 通过producer.properties修改了配置:max.request.size=1024000,并没有效果

示例图片

screenshot

发表于 2019-03-29
添加评论

这个改了吗?
max.message.bytes

改了哈~max.message.bytes=1024000

你的答案

查看kafka相关的其他问题或提一个您自己的问题