inuex opened a new issue, #7393:
URL: https://github.com/apache/seatunnel/issues/7393

   ### Search before asking
   
   - [X] I had searched in the 
[feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22)
 and found no similar feature requirement.
   
   
   ### Description
   
   已经启用了 MySQL 的 Binlog 的情况下, 使用MySQL CDC ,希望两表实时同步,启动脚本总是报以下错误,如何解决:
   ```
   Caused by: java.lang.RuntimeException: Generate Splits for table test.log 
error
   ```
   
   config配置:
   ```
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 10000
   }
   
   source {
     MySQL-CDC {
       base-url = 
"jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
       username = "root"
       password = "123456"
       table-names = ["test.log"]
       table-names-config = [
         {
           table = "test.log"
           primaryKeys = ["id"]
         }
       ]
     }
   }
   
   sink {
     jdbc {
       url = 
"jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "root"
       password = "123456"
       generate_sink_sql = true
       database = "test"
       table = "log_1"
       primary_keys = ["id"]
     }
   }
   ```
   
   启动脚本
   ```
   cd /d D:\Servers\apache-seatunnel-2.3.6
   .\bin\seatunnel.cmd --config .\script\o1.conf -m local
   ```
   
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to