14 Star 41 Fork 79

openGauss / community

 / 详情

一直卡在 Init replica process for source mysql started

待办的
任务
创建于  
2024-02-04 10:36

尊敬的开发者您好:
我目前在使用该改迁移工具当中,遇见了以下问题。
问题:执行迁移命令时看 default_mysql.log,default_general.log 无明显报错信息,但openGauss端并无相应的迁移表以及相应的迁移内容。
迁移环境:
vm虚拟机,mysql版本5.5.54,操作系统openEuler20.03,openguass数据库openGauss_5.0.1 轻量版,MySQL与 openGauss_5.0.1都在一台虚拟机上。
执行迁移命令时:
(venv) [jph@localhost configuration]chameleoncreatereplicaschema−−configdefault(venv)[jph@localhostconfiguration]
chameleon add_source --config default --source mysql
(venv) [jph@localhost configuration]$ chameleon init_replica --config default --source mysql
Init replica process for source mysql started.
一直卡在 Init replica process for source mysql started.这个命令。
查看 default_mysql.log 如下
输入图片说明
查看default_general.log 如下
输入图片说明
位于/home/jph/.pg_chameleon/configuration中的default.yml 配置如下。


override_to: boolean
override_tables:
- "*"
specify the compress properties when creating tables
compress_properties:
compresstype: 0
compress_level: 0
compress_chunk_size: 4096
compress_prealloc_chunks: 0
compress_byte_convert: false
compress_diff_convert: false

postgres destination connection
pg_conn:
host: "127.0.0.1"
port: "5432"
user: "opengauss_test"
password: "Sample@123"
database: "opengauss_database"
charset: "utf8"

sources:
mysql:
readers: 4
writers: 4
retry: 3
db_conn:
host: "127.0.0.1"
port: "3306"
user: "root"
password: "1234qwer"
charset: 'utf8'
connect_timeout: 10
schema_mappings:
test: public
limit_tables:
- delphis_mediterranea.foo
skip_tables:
- delphis_mediterranea.bar
enable_compress: No
compress_tables:
- delphis_mediterranea.foo
grant_select_to:
- usr_readonly
lock_timeout: "120s"
my_server_id: 100
replica_batch_size: 10000
replay_max_rows: 10000
batch_retention: '1 day'
copy_max_memory: "300M"
copy_mode: 'file'
out_dir: /tmp
csv_dir: /tmp
contain_columns: No
column_split: ','
sleep_loop: 1
on_error_replay: continue
on_error_read: continue
auto_maintenance: "disabled"
index_parallel_workers: 2
gtid_enable: false
type: mysql
skip_events:
insert:
- delphis_mediterranea.foo # skips inserts on delphis_mediterranea.foo
delete:
- delphis_mediterranea # skips deletes on schema delphis_mediterranea
update:
keep_existing_schema: No

再次感谢您!!!

评论 (2)

小小的你 创建了任务

Hey @小小的你, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss_bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

Hi @小小的你,
if you want to get quick review about your issue, please contact the owner in first: @xiangxinyong ,
and then any of the maintainers: @zhongjun2
and then any of the committers: @xiangxinyong , @zhangxubo , @邦邦邦邦 , @ailoooong , @xiangrumei
if you have any question, please contact the SIG: Infra.

opengauss_bot 添加了
 
sig/infra
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
13084139 opengauss bot 1686829535
1
https://gitee.com/opengauss/community.git
git@gitee.com:opengauss/community.git
opengauss
community
community

搜索帮助