From 5a4c083ae8ab1ebc325b283ec708f2422d96aa83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 12 Jan 2021 17:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Kafka.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 5bc77626..5b85f395 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -162,6 +162,7 @@ class Kafka extends \Snowflake\Process\Process //smallest:简单理解为从头开始消费,largest:简单理解为从最新的开始消费 $topicConf->set('auto.offset.reset', 'smallest'); $topicConf->set('offset.store.path', 'kafka_offset.log'); + $topicConf->set('offset.store.method', 'broker'); // $topicConf->set('allow.auto.create.topics', 'true'); } catch (Throwable $exception) { var_dump($exception->getMessage());