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

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   My MySQL instance is RDB on HUAWEI Clound, its serverId is `3078039605`.
   SeaTunnel throw Exception when running.
   
   ### SeaTunnel Version
   
   2.3.2
   
   ### SeaTunnel Config
   
   ```conf
   {
       "env" : {
           "execution.parallelism" : 1,
           "job.mode" : "STREAMING",
           "checkpoint.interval" : 2000
       },
       "source" : [
           {
               "base-url" : "jdbc:mysql://host:port/database",
               "password" : "pwd",
               "table-names" : [
                   "database.tablename"
               ],
               "result_table_name" : "t1",
               "plugin_name" : "MySQL-CDC",
               "server-id" : 3078039605,
               "username" : "username"
           }
       ],
       "sink" : [
           {
               "plugin_name" : "Console"
           }
       ]
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh -e local --config ./config/mysql-cdc-console.conf
   ```
   
   
   ### Error Exception
   
   ```log
   Exception in thread "main" 
org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel 
job executed failed
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:188)
           at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
           at 
org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   Caused by: java.lang.IllegalStateException: The server id 3078039605 is not 
a valid numeric.
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.ServerIdRange.parseServerId(ServerIdRange.java:109)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.ServerIdRange.from(ServerIdRange.java:99)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.MySqlSourceConfigFactory.serverId(MySqlSourceConfigFactory.java:46)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlIncrementalSource.createSourceConfigFactory(MySqlIncrementalSource.java:83)
           at 
org.apache.seatunnel.connectors.cdc.base.source.IncrementalSource.prepare(IncrementalSource.java:116)
           at 
org.apache.seatunnel.engine.core.parse.JobConfigParser.parseSource(JobConfigParser.java:81)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:298)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:159)
           at 
org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.getLogicalDag(JobExecutionEnvironment.java:155)
           at 
org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.execute(JobExecutionEnvironment.java:147)
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:140)
           ... 2 more
   Caused by: java.lang.NumberFormatException: For input string: "3078039605"
           at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
           at java.lang.Integer.parseInt(Integer.java:583)
           at java.lang.Integer.parseInt(Integer.java:615)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.ServerIdRange.parseServerId(ServerIdRange.java:106)
           ... 12 more
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to