pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37.11k stars 5.83k forks source link

How to set up topic name by myself? #8832

Closed lwlw217 closed 5 years ago

lwlw217 commented 5 years ago

Question

How to set up kafka-topic name by myself?

When I use TiDB-binlog ,found some questions. For example: I don't konw the topic in the below: what does it mean? image

I just know "6636925016299136240" is clusterID,what does it mean? can I set it by myself?

I hope to receive your reply.

eurekaka commented 5 years ago

Thank you for the feedback, @csuzhangxc PTAL

july2993 commented 5 years ago
# when db-type is kafka, you can uncomment this to config the down stream kafka, it will be the globle config kafka default
#[syncer.to]
# only need config one of zookeeper-addrs and kafka-addrs, will get kafka address if zookeeper-addrs is configed.
# zookeeper-addrs = "127.0.0.1:2181"
# kafka-addrs = "127.0.0.1:9092"
# kafka-version = "0.8.2.0"
# kafka-max-messages = 1024
#
#
# the topic name drainer will push msg, the default name is <cluster-id>_obinlog
# be careful don't use the same name if run multi drainer instances
# topic-name = ""

@wl21787 you can set it while topic-name