如何定义以数字开头的Kafka消费者组并在Memgraph中使用它?

huangapple go评论59阅读模式
英文:

How to define a Kafka consumer group starting with a number and use it in Memgraph?

问题

I've noticed that when attempting to create a Kafka stream with a consumer group name starting with a number, it is not accepted. However, if I prepend a letter before the numbers in the consumer group name, it is accepted. Shouldn't the literal following CONSUMER_GROUP be treated as a string regardless of whether it starts with a number?

Here's the revised query:

CREATE KAFKA STREAM my_stream
TOPICS sales-data
TRANSFORM my_app.sales_transformations
CONSUMER_GROUP group12345abcde
BOOTSTRAP_SERVERS 'kafka.example.com:9092'
CREDENTIALS {'sasl.username':'my_username',
'sasl.password':'my_password',
'security.protocol':'SASL_SSL',
'sasl.mechanism':'PLAIN'};

英文:

I've noticed that when attempting to create a Kafka stream with a consumer group name starting with a number, it is not accepted. However, if I prepend a letter before the numbers in the consumer group name, it is accepted. Shouldn't the literal following CONSUMER_GROUP be treated as a string regardless of whether it starts with a number?

Here's the revised query:

CREATE KAFKA STREAM my_stream
TOPICS sales-data
TRANSFORM my_app.sales_transformations
CONSUMER_GROUP group12345abcde
BOOTSTRAP_SERVERS 'kafka.example.com:9092'
CREDENTIALS {'sasl.username':'my_username',
             'sasl.password':'my_password',
             'security.protocol':'SASL_SSL',
             'sasl.mechanism':'PLAIN'};

答案1

得分: 1

Memgraph GitHub存储库中存在一个未解决的问题。这纯粹是Memgraph的一个限制,缓解此问题的简单方法是在名称前添加任何有效字符。

英文:

There is an open issue in Memgraph GitHub repo. This is purely a limitation Memgraph has, an easy way to mitigate the issue is to just prefix the name by any valid character.

huangapple
  • 本文由 发表于 2023年5月22日 21:56:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76306938.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定