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

阿里云 rds oss binlog 有配置成功吗 #5311

Open
callmedba opened this issue Oct 30, 2024 · 3 comments
Open

阿里云 rds oss binlog 有配置成功吗 #5311

callmedba opened this issue Oct 30, 2024 · 3 comments

Comments

@callmedba
Copy link

Question

canal 1.1.7 版本

阅读过canal wiki和issue 以及google搜索到的多篇文章 ,配置 ak / sk 以及 rds id

尝试过多次 ,无论是 位点 还是 时间戳 方式 ,均未成功从 oss 拉取到 rds 本地不存在但oss存在的binlog

请问有大佬成功过吗 ?

@callmedba
Copy link
Author

主要是想确认 :这条路能走通吗 ? 如果可以,就再多尝试几次 ;如果不通 ,就放弃 😄

@cheng6563
Copy link

毛日志没打,你开个远程debug端口连上去直接单步调试就知道了

@cheng6563
Copy link

调了半天ok了,时间戳方式,要做这些:
1.示例配置文件里的配置项是错的,ak,sk要这么配置:

canal.instance.rds.instanceId=rm-12345
canal.aliyun.accesskey=123
canal.aliyun.secretkey=123456

2.给RAM账号加权限:
https://help.aliyun.com/zh/rds/apsaradb-rds-for-mysql/grant-backup-file-download-permissions-to-a-ram-user-with-read-only-permissions

再不行就远程调源码,主要看2个地方:

  1. RdsBinlogEventParserProxy 看ak,sk有没有正确注入
  2. RdsLocalBinlogEventParser 看有没有报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants