如何配置 yb-cdc-connector 以在 yugabyte db 重启(停止和启动)时恢复打印日志?
How to configure yb-cdc-connector to resume printing logs upon yugabyte db restart (stop and start)?
正在关注,
发布更改日志。
它工作正常。但是,在重启 yugabyte db 之后,yb-connector.jar 没有恢复发布更改数据日志。
执行的命令:
wget -O yb-cdc-connector.jar https://github.com/yugabyte/yb-kafka-connector/blob/master/yb-cdc/yb-cdc-connector.jar?raw=true
终端 1:
###start yugabyte db
/opt/yugabyte/yugabyte-2.0.10.0/bin/yb-ctl --data_dir "/opt/yugabyte/data" start
终端2:
###start load generator
julia "/root/gen_users_yb.jl"
终端 3:
###publish change logs
java -jar ./yb-cdc-connector.jar --table_name yugastore.users --master_addrs 127.0.0.1:7100 --log_only
终端 1:
###stop yugabyte db
/opt/yugabyte/yugabyte-2.0.10.0/bin/yb-ctl --data_dir "/opt/yugabyte/data" stop
(注意:在 LibPQ 异常负载生成器退出并且 yb-connector 等待时)
终端2:
###restarting load generator
julia "/root/gen_users_yb.jl"
观察:在终端 3 上没有恢复发布日志
请帮助我配置 yb-cdc-connector 在 yb-ctl 重启(停止和启动)时恢复打印日志。
尚不支持此功能。你能在 github https://github.com/yugabyte/yugabyte-db/issues 上创建一个问题吗?
正在关注,
它工作正常。但是,在重启 yugabyte db 之后,yb-connector.jar 没有恢复发布更改数据日志。
执行的命令:
wget -O yb-cdc-connector.jar https://github.com/yugabyte/yb-kafka-connector/blob/master/yb-cdc/yb-cdc-connector.jar?raw=true
终端 1:
###start yugabyte db
/opt/yugabyte/yugabyte-2.0.10.0/bin/yb-ctl --data_dir "/opt/yugabyte/data" start
终端2:
###start load generator
julia "/root/gen_users_yb.jl"
终端 3:
###publish change logs
java -jar ./yb-cdc-connector.jar --table_name yugastore.users --master_addrs 127.0.0.1:7100 --log_only
终端 1:
###stop yugabyte db
/opt/yugabyte/yugabyte-2.0.10.0/bin/yb-ctl --data_dir "/opt/yugabyte/data" stop
(注意:在 LibPQ 异常负载生成器退出并且 yb-connector 等待时)
终端2:
###restarting load generator
julia "/root/gen_users_yb.jl"
观察:在终端 3 上没有恢复发布日志
请帮助我配置 yb-cdc-connector 在 yb-ctl 重启(停止和启动)时恢复打印日志。
尚不支持此功能。你能在 github https://github.com/yugabyte/yugabyte-db/issues 上创建一个问题吗?