This commit is contained in:
2021-01-12 17:23:08 +08:00
parent f6bbcea9a2
commit 5a4c083ae8
+1
View File
@@ -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());