You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "827086469 (via GitHub)" <gi...@apache.org> on 2025/04/06 09:39:35 UTC
[I] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
827086469 opened a new issue, #9117:
URL: https://github.com/apache/seatunnel/issues/9117
### 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
要求两表实时同步,启动时总是报错: Unable to create a source for identifier 'Oracle-CDC'
oracle version 19C
connector-cdc-oracle-2.3.5.jar 在 connectors目录
ojdbc8-19.3.0.0.jar 在lib 目录
JDK 1.8
source配置使用实例名和服务名都不行
driver使用oracle.jdbc.driver.OracleDriver和oracle.jdbc.OracleDriver都试过还是报错
没有指出具体错误在哪里
使用该配置已经成功同步数据,目前是CDC有问题
source {
Jdbc {
url = "jdbc:oracle:thin:@192.168.19.161:1521/orcl"
driver = "oracle.jdbc.OracleDriver"
user = "TY_XBYC"
password = "TY_XBYC"
query = "select cs from cs"
}
}
### SeaTunnel Version
apache-seatunnel-2.3.5
### SeaTunnel Config
```conf
env {
parallelism = 1
job.mode = "STREAMING"
checkpoint.interval = 5000
}
source {
Oracle-CDC {
driver = "oracle.jdbc.driver.OracleDriver"
result_table_name = "om_meter_data_stream"
username = "TY_XBYC"
password = "TY_XBYC"
database-names = ["orcl"]
schema-names = ["TY_XBYC"]
table-names = ["orcl.TY_XBYC.CS"]
base-url = "jdbc:oracle:thin:@//192.168.19.161:1521/orcl"
source.reader.close.timeout = 120000
connection.pool.size = 1
debezium.logging.level = "INFO"
}
}
transform {
// 如需数据转换,可在此处添加
}
sink {
Console {
source_table_name = "om_meter_data_stream"
}
}
```
### Running Command
```shell
/opt/apache-seatunnel-2.3.5/bin/seatunnel.sh --config /opt/apache-seatunnel-2.3.5/config/cs.config
/opt/apache-seatunnel-2.3.5/bin/seatunnel.sh -e local --config /opt/apache-seatunnel-2.3.5/config/cs.config
```
### Error Exception
```log
2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel ] [main] -
===============================================================================
2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel ] [main] - Fatal Error,
2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel ] [main] - Please submit bug report in https://github.com/apache/seatunnel/issues
2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel ] [main] - Reason:SeaTunnel job executed failed
2025-04-06 05:14:28,360 ERROR [o.a.s.c.s.SeaTunnel ] [main] - Exception StackTrace:org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:202)
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: org.apache.seatunnel.api.table.factory.FactoryException: ErrorCode:[API-06], ErrorDescription:[Factory initialize failed] - Unable to create a source for identifier 'Oracle-CDC'.
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:100)
at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:332)
at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:188)
at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:156)
at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:149)
... 2 more
Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Can not find catalog table with factoryId [Oracle]
at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.lambda$getCatalogTables$0(CatalogTableUtil.java:129)
at java.util.Optional.map(Optional.java:215)
at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:116)
at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:96)
at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSourceFactory.lambda$createSource$1(OracleIncrementalSourceFactory.java:106)
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:112)
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:73)
... 7 more
2025-04-06 05:14:28,360 ERROR [o.a.s.c.s.SeaTunnel ] [main] -
===============================================================================
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:202)
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: org.apache.seatunnel.api.table.factory.FactoryException: ErrorCode:[API-06], ErrorDescription:[Factory initialize failed] - Unable to create a source for identifier 'Oracle-CDC'.
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:100)
at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:332)
at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:188)
at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:156)
at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:149)
... 2 more
Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Can not find catalog table with factoryId [Oracle]
at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.lambda$getCatalogTables$0(CatalogTableUtil.java:129)
at java.util.Optional.map(Optional.java:215)
at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:116)
at org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:96)
at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSourceFactory.lambda$createSource$1(OracleIncrementalSourceFactory.java:106)
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:112)
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:73)
... 7 more
```
### Zeta or Flink or Spark Version
_No response_
### Java or Scala Version
JDK1.8
### Screenshots

### 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: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "ll996960921 (via GitHub)" <gi...@apache.org>.
ll996960921 commented on issue #9117:
URL: https://github.com/apache/seatunnel/issues/9117#issuecomment-3783165925
How was this problem finally resolved?
--
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] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "827086469 (via GitHub)" <gi...@apache.org>.
827086469 commented on issue #9117:
URL: https://github.com/apache/seatunnel/issues/9117#issuecomment-2781815060
> you can put connector-cdc-oracle-2.3.5.jar to lib directory ,and restart seatunnel
还是一样的错,我看了其他帖子,我根据其他帖子试试看
--
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] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "RaymondFishWang (via GitHub)" <gi...@apache.org>.
RaymondFishWang commented on issue #9117:
URL: https://github.com/apache/seatunnel/issues/9117#issuecomment-2781791423
you can put connector-cdc-oracle-2.3.5.jar to lib directory ,and restart seatunnel
--
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] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9117:
URL: https://github.com/apache/seatunnel/issues/9117#issuecomment-2860925257
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
Re: [I] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9117: [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC'
URL: https://github.com/apache/seatunnel/issues/9117
--
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] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9117:
URL: https://github.com/apache/seatunnel/issues/9117#issuecomment-2906098961
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] [Oracle-CDC] Unable to create a source for identifier 'Oracle-CDC' [seatunnel]
Posted by "ll996960921 (via GitHub)" <gi...@apache.org>.
ll996960921 commented on issue #9117:
URL: https://github.com/apache/seatunnel/issues/9117#issuecomment-3783155367
这个问题最后怎么解决的???
--
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