[FLINK-35354] Support host mapping in Flink tikv cdc
In tidb production environment deployment, there are usually two kinds of network: internal network and public network. When we use pd mode in tikv, we need to do network mapping, such as spark.tispark.host_mapping in https://github.com/pingcap/tispark/blob/master/docs/userguide_3.0.md. So I think we need support host_mapping in our Flink tikv cdc connector.
I think we can specific a config prefix pass config to tikv client like cdc source connector pass config to debezium by debezium.*. This way will be flexible. @leonardBang @Mrart cc
I think we can specific a config prefix pass config to tikv client like cdc source connector pass config to debezium by
debezium.*. This way will be flexible. @leonardBang @Mrart cc
tikv.* is configured on tikv config. hostmapping and pd config are similar to the database host configuration, and the current configuration looks more appropriate
As discuss offline with @Mrart , due to tikvclient's config hostMapping has different logic with others. So the solution in this PR, I think ok.
I think we can specific a config prefix pass config to tikv client like cdc source connector pass config to debezium by
debezium.*. This way will be flexible. @leonardBang @Mrart cctikv.* is configured on tikv config. hostmapping and pd config are similar to the database host configuration, and the current configuration looks more appropriate
Thanks for the help review.
@leonardBang Can you help me review it again?
@Mrart Can you rebase the branch?