seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

I want to synchronise incremental data from mysql table to another mysql table using MYSQL-CDC connnector

Open sangeetha1706 opened this issue 3 years ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

I want to synchronise incremental data from mysql table to another mysql table using MYSQL-CDC connnector but im getting error.i have added connector-cdc-mysql-2.3.0.jar in /connectors/seatunnel also.

SeaTunnel Version

apache-seatunnel-incubating-2.3.0

SeaTunnel Config

env {
   job.mode = "STREAMING"
 
}
source {
  mysqlCdc {
    result_table_name = "SINK_USER"
    parallelism = 1
    port = 3306
    hostname = "10.0.0.82"
    user = "hauser"
    password = "Hauser@7ujm"
    database-name = "test"
    table-name = "SOUCE_USER"
    base-url = "jdbc:mysql://10.0.0.82:3306"
}}

transform {
}
sink {
jdbc {

url = "jdbc:mysql://10.0.0.82:3306/test?serverTimezone=GMT%2b8"
        driver = "com.mysql.cj.jdbc.Driver"
        user = "hauser"
        password = "Hauser@7ujm"
        primary_keys = ["ID"]
       table = SINK_USER
}}

Running Command

./bin/seatunnel.sh -c ./config/MYSQL-CDC.conf -e LOCAL

Error Exception

2023-03-13 21:14:09,352 ERROR org.apache.seatunnel.core.starter.Seatunnel - Fatal Error, 

2023-03-13 21:14:09,352 ERROR org.apache.seatunnel.core.starter.Seatunnel - Please submit bug report in https://github.com/apache/incubator-seatunnel/issues

2023-03-13 21:14:09,352 ERROR org.apache.seatunnel.core.starter.Seatunnel - Reason:Plugin PluginIdentifier{engineType='seatunnel', pluginType='source', pluginName='mysqlCdc'} not found. 

2023-03-13 21:14:09,354 ERROR org.apache.seatunnel.core.starter.Seatunnel - Exception StackTrace:java.lang.RuntimeException: Plugin PluginIdentifier{engineType='seatunnel', pluginType='source', pluginName='mysqlCdc'} not found.
	at org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.createPluginInstance(AbstractPluginDiscovery.java:200)
	at org.apache.seatunnel.engine.core.parse.ConnectorInstanceLoader.loadSourceInstance(ConnectorInstanceLoader.java:59)
	at org.apache.seatunnel.engine.core.parse.JobConfigParser.sampleAnalyze(JobConfigParser.java:314)
	at org.apache.seatunnel.engine.core.parse.JobConfigParser.parse(JobConfigParser.java:125)
	at org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.getLogicalDag(JobExecutionEnvironment.java:129)
	at org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.execute(JobExecutionEnvironment.java:121)
	at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:91)
	at org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:39)
	at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:31)

Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

Screenshot (541) Screenshot (542)

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

sangeetha1706 avatar Mar 13 '23 15:03 sangeetha1706

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Apr 13 '23 00:04 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Apr 20 '23 00:04 github-actions[bot]