You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "luowei62288 (via GitHub)" <gi...@apache.org> on 2025/04/11 02:17:41 UTC

[I] [Bug] [Module Name] Bug title MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log [seatunnel]

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

   ### 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
   
   MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log
   
   ### SeaTunnel Version
   
   SeaTunnel2.3.8
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 2
     job.mode = "STREAMING"
     checkpoint.interval = 10000
   }
   
   # 配置数据源
   source {
     MySQL-CDC {
       # 数据库账号
       username = "**"
       password = "**"
       # 源表,格式:数据库名.表名
       table-names = ["****.****"]
       base-url = "jdbc:mysql://***:****/gtcfx_metatrader5"
     }
   }
   
   # 配置目标库
   sink {
       Jdbc {
           # if you would use json or jsonb type insert please add jdbc url stringtype=unspecified option
           url = "jdbc:postgresql://*******:***/***"
           driver = org.postgresql.Driver
           user = *******
           password = ******
       
           generate_sink_sql = true
           database = ****
           table = "****.****"
       }
   }
   ```
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config ./config/test_holo.config
   ```
   
   ### Error Exception
   
   ```log
   2025-04-11 09:17:43,155 INFO  [p.MultipleTableJobConfigParser] [main] - start generating all sources.
   2025-04-11 09:17:43,698 INFO  [o.a.s.c.s.j.c.m.MySqlCatalog  ] [main] - Failed to get mysql version, fallback to default version: V_5_7
   java.lang.UnsupportedOperationException: Unsupported MySQL version: 11.4.2-MariaDB-log
           at org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.mysql.MySqlVersion.parse(MySqlVersion.java:44) ~[connector-cdc-mysql-2.3.8.jar:2.3.8]
           at org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.mysql.MySqlCatalog.resolveVersion(MySqlCatalog.java:222) ~[connector-cdc-mysql-2.3.8.jar:2.3.8]
           at org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.mysql.MySqlCatalog.<init>(MySqlCatalog.java:66) ~[connector-cdc-mysql-2.3.8.jar:2.3.8]
           at org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.mysql.MySqlCatalogFactory.createCatalog(MySqlCatalogFactory.java:53) ~[connector-cdc-mysql-2.3.8.jar:2.3.8]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.lambda$createOptionalCatalog$0(FactoryUtil.java:174) ~[seatunnel-starter.jar:2.3.8]
           at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_312]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.createOptionalCatalog(FactoryUtil.java:173) ~[seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:115) ~[seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:98) ~[seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlIncrementalSourceFactory.lambda$createSource$1(MySqlIncrementalSourceFactory.java:102) ~[connector-cdc-mysql-2.3.8.jar:2.3.8]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:113) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:74) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:375) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:209) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:114) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:182) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:160) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40) [seatunnel-starter.jar:2.3.8]
           at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34) [seatunnel-starter.jar:2.3.8]
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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-unsubscribe@seatunnel.apache.org.apache.org

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


Re: [I] [Bug] [Module Name] Bug title MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log [seatunnel]

Posted by "topatsaya (via GitHub)" <gi...@apache.org>.
topatsaya commented on issue #9148:
URL: https://github.com/apache/seatunnel/issues/9148#issuecomment-3485150362

   java.lang.UnsupportedOperationException: Unsupported MySQL version: 11.4.7-4-MariaDB-enterprise-log


-- 
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-unsubscribe@seatunnel.apache.org

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


Re: [I] [Bug] [Module Name] Bug title MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9148:
URL: https://github.com/apache/seatunnel/issues/9148#issuecomment-2892581076

   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.


-- 
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-unsubscribe@seatunnel.apache.org

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


Re: [I] [Bug] [Module Name] Bug title MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9148: [Bug] [Module Name] Bug title MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log
URL: https://github.com/apache/seatunnel/issues/9148


-- 
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-unsubscribe@seatunnel.apache.org

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


Re: [I] [Bug] [Module Name] Bug title MySQL CDC Unsupported MySQL version: 11.4.2-MariaDB-log [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9148:
URL: https://github.com/apache/seatunnel/issues/9148#issuecomment-2870406274

   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.


-- 
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-unsubscribe@seatunnel.apache.org

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