Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何配置从Mysql到KAFKA的同步 #10

Open
zhangkewei opened this issue Jan 15, 2019 · 0 comments
Open

如何配置从Mysql到KAFKA的同步 #10

zhangkewei opened this issue Jan 15, 2019 · 0 comments
Labels
question Further information is requested

Comments

@zhangkewei
Copy link
Collaborator

zhangkewei commented Jan 15, 2019

如何配置从Mysql到kafka的同步

以下配置文件格式适用配置管理后台"同步管理->高级任务配置(原菜单名:本地任务)->新增"
如果是本地任务配置文件需要增加前缀"porter.task[任务下标,从0开始]"

taskId=任务ID
nodeId=节点ID
consumer.consumerName=CanalFetch
consumer.converter=canalRow
consumer.source.sourceType=CANAL
consumer.includes=数据库名.表名,数据库名.表名
consumer.source.filter=过滤表名正则
consumer.source.database=数据库名字
consumer.source.password=密码
consumer.source.address=ip:3306
consumer.source.username=用户名

loader.loaderName=KAFKA_SYNC
loader.source.sourceType=KAFKA_PRODUCE
loader.source.servers=kafka地址 
loader.source.topic=主题
loader.source.oggJson=true(输出格式为ogg json格式)
loader.source.partitionKey.数据库名(oracle schema名).表名=分片字段
@zhangkewei zhangkewei added the question Further information is requested label Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant