seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

[Feature][Connector-V2]new connecotor of TiKV source and sink

Open Xuxiaotuan opened this issue 3 years ago • 6 comments
trafficstars

Purpose of this pull request

Add new new connecotor of TiKV source and sink, refer to https://github.com/apache/incubator-seatunnel/issues/1946#issuecomment-1253260625.

Check list

  • [x] Code changed are covered with tests.
  • [x] If any new Jar binary package adding in your PR, please add License Notice according New License Guide
  • [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs

Xuxiaotuan avatar Sep 21 '22 08:09 Xuxiaotuan

@Hisoka-X PTAL

Xuxiaotuan avatar Sep 21 '22 08:09 Xuxiaotuan

Can you add doc to introduce this connector? Reference: https://github.com/apache/incubator-seatunnel/tree/dev/docs/en/connector-v2

Hisoka-X avatar Sep 21 '22 08:09 Hisoka-X

And tell the user why implementing in Java client is better than JDBC, or the different between two way.

Hisoka-X avatar Sep 21 '22 08:09 Hisoka-X

And tell the user why implementing in Java client is better than JDBC, or the different between two way.

sure 😃

Xuxiaotuan avatar Sep 21 '22 08:09 Xuxiaotuan

@Hisoka-X I have fixed some code style issues, please rerun ci workflow again

Xuxiaotuan avatar Sep 21 '22 09:09 Xuxiaotuan

You can package in local before you push. So you can find problem eariler.

Hisoka-X avatar Sep 22 '22 03:09 Hisoka-X

Ok, thanks, I'm testing locally and there are still some trouble, so don't review the code first.

The simple scenario test passed, but there are still some types that are not compatible, and there are still some problems in requesting tidb in the docker environment. I am dealing with

image

Xuxiaotuan avatar Sep 25 '22 17:09 Xuxiaotuan

@Xuxiaotuan hi,I am currently completing the e2e of Tidb, but when I use Docker to start the cluster, there is always a problem with the connection between PD and Tidb. Do you know the reason

[util.rs:549] ["PD failed to respond"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: "failed to connect to all addresses", details: [] }))"] [endpoints=127.0.0.1:2379]

Carl-Zhou-CN avatar Sep 30 '22 06:09 Carl-Zhou-CN

Please fix the code style.

EricJoy2048 avatar Oct 05 '22 14:10 EricJoy2048

@Xuxiaotuan hi,I am currently completing the e2e of Tidb, but when I use Docker to start the cluster, there is always a problem with the connection between PD and Tidb. Do you know the reason

[util.rs:549] ["PD failed to respond"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: "failed to connect to all addresses", details: [] }))"] [endpoints=127.0.0.1:2379]

when accessing between tidb pd and tikv, it is accessed through the internal address side, similar to hadoop xxx:port

Xuxiaotuan avatar Oct 17 '22 03:10 Xuxiaotuan

@Xuxiaotuan hi,I am currently completing the e2e of Tidb, but when I use Docker to start the cluster, there is always a problem with the connection between PD and Tidb. Do you know the reason [util.rs:549] ["PD failed to respond"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: "failed to connect to all addresses", details: [] }))"] [endpoints=127.0.0.1:2379]

when accessing between tidb pd and tikv, it is accessed through the internal address side, similar to hadoop xxx:port

https://mp.weixin.qq.com/s/36EzhuTVb6oiUZTUYSJMWg tidb is currently accessible in docker

Xuxiaotuan avatar Oct 21 '22 11:10 Xuxiaotuan

I checked and found that when start only tikv and pd, docker is required to use host-network-mode-linux Because I am using macOS, I encountered some problems, in fact,“The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.”

Xuxiaotuan avatar Oct 21 '22 21:10 Xuxiaotuan

@Xuxiaotuan hi,I am currently completing the e2e of Tidb, but when I use Docker to start the cluster, there is always a problem with the connection between PD and Tidb. Do you know the reason [util.rs:549] ["PD failed to respond"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: "failed to connect to all addresses", details: [] }))"] [endpoints=127.0.0.1:2379]

when accessing between tidb pd and tikv, it is accessed through the internal address side, similar to hadoop xxx:port

https://mp.weixin.qq.com/s/36EzhuTVb6oiUZTUYSJMWg tidb is currently accessible in docker

Thank you. I'll try that, too

Carl-Zhou-CN avatar Oct 24 '22 06:10 Carl-Zhou-CN