浏览代码

异常修复

pms 2 年之前
父节点
当前提交
341774681a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mainFactory/src/main/java/org/bfkj/protocol/MyKafKa.java

+ 1 - 0
mainFactory/src/main/java/org/bfkj/protocol/MyKafKa.java

@@ -33,6 +33,7 @@ public class MyKafKa {
         connectConfigMaps.put("max.poll.records", pollNumber == null ? 1 : Integer.parseInt(pollNumber));
         connectConfigMaps.put("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
         connectConfigMaps.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
+        connectConfigMaps.put("max.partition.fetch.bytes", 11534336);
 
         if (Objects.isNull(consumer)) {
             consumer = new KafkaConsumer<>(connectConfigMaps);