You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "antshan (via GitHub)" <gi...@apache.org> on 2024/05/22 08:02:09 UTC

[I] [Bug] Caused by: java.util.ServiceConfigurationError: org.apache.paimon.factories.Factory: org.apache.paimon.flink.action.MigrateDatabaseActionFactory not a subtype [paimon]

antshan opened a new issue, #3375:
URL: https://github.com/apache/paimon/issues/3375

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
   
   
   ### Paimon version
   
   0.8
   
   ### Compute Engine
   
   flink 1.18.1
   flink-cdc 3.1
   
   ### Minimal reproduce step
   
   sync the data of mysql to paimon, warehouse is local filesystem
   flink is based on standalone
   
   ### What doesn't meet your expectations?
   
   after the job submitted to flink, some error occured
   Caused by: java.lang.RuntimeException: Unexpected error when trying to load service provider.
   	at org.apache.paimon.factories.FactoryUtil.discoverFactories(FactoryUtil.java:118)
   	at org.apache.paimon.factories.FactoryUtil.discoverFactory(FactoryUtil.java:38)
   	at org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:73)
   	at org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:66)
   	at org.apache.paimon.flink.FlinkCatalogFactory.createPaimonCatalog(FlinkCatalogFactory.java:80)
   	at org.apache.flink.cdc.connectors.paimon.sink.v2.PaimonWriter.<init>(PaimonWriter.java:77)
   	at org.apache.flink.cdc.connectors.paimon.sink.v2.PaimonSink.createWriter(PaimonSink.java:67)
   	at org.apache.flink.cdc.connectors.paimon.sink.v2.PaimonSink.createWriter(PaimonSink.java:39)
   	at org.apache.flink.streaming.runtime.operators.sink.StatelessSinkWriterStateHandler.createWriter(StatelessSinkWriterStateHandler.java:39)
   	at org.apache.flink.streaming.runtime.operators.sink.SinkWriterOperator.initializeState(SinkWriterOperator.java:149)
   	at org.apache.flink.cdc.runtime.operators.sink.DataSinkWriterOperator.initializeState(DataSinkWriterOperator.java:126)
   	at org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.initializeOperatorState(StreamOperatorStateHandler.java:122)
   	at org.apache.flink.streaming.api.operators.AbstractStreamOperator.initializeState(AbstractStreamOperator.java:274)
   	at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:106)
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:753)
   	at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55)
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:728)
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:693)
   	at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:953)
   	at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:922)
   	at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:746)
   	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:562)
   	at java.base/java.lang.Thread.run(Thread.java:842)
   Caused by: java.util.ServiceConfigurationError: org.apache.paimon.factories.Factory: org.apache.paimon.flink.action.MigrateDatabaseActionFactory not a subtype
   	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
   	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
   	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
   	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
   	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
   	at org.apache.paimon.factories.FactoryUtil.discoverFactories(FactoryUtil.java:105)
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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: issues-unsubscribe@paimon.apache.org.apache.org

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


Re: [I] [Bug] Caused by: java.util.ServiceConfigurationError: org.apache.paimon.factories.Factory: org.apache.paimon.flink.action.MigrateDatabaseActionFactory not a subtype [paimon]

Posted by "star-m (via GitHub)" <gi...@apache.org>.
star-m commented on issue #3375:
URL: https://github.com/apache/paimon/issues/3375#issuecomment-2132149602

   How To resolve It? We meet this question too!


-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [I] [Bug] Caused by: java.util.ServiceConfigurationError: org.apache.paimon.factories.Factory: org.apache.paimon.flink.action.MigrateDatabaseActionFactory not a subtype [paimon]

Posted by "star-m (via GitHub)" <gi...@apache.org>.
star-m commented on issue #3375:
URL: https://github.com/apache/paimon/issues/3375#issuecomment-2133055797

   We add classloader.resolve-order: parent-first to resolve it!


-- 
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: issues-unsubscribe@paimon.apache.org

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