Open Asura7969 opened 6 months ago
@Carl-Zhou-CN cc
hi, @Asura7969 Most likely, the catalog fails to query the table you specified
hi, @Asura7969 Most likely, the catalog fails to query the table you specified
Are you referring to the issue of account permissions for connecting to pg?
Are you referring to the issue of account permissions for connecting to pg?
It could be, or it could happen because of a connection timeout, or because of a table name definition error
Are you referring to the issue of account permissions for connecting to pg?
It could be, or it could happen because of a connection timeout, or because of a table name definition error
The task runs normally, but no data is written to starrocks,no exception log
I have the same issue with seatunnel V2.3.4.
Postgresql: 12.18 PostgreSQL JDBC Driver: 42.7.3
Seatunnel Log
2024-04-08 14:21:24,171 INFO [o.a.s.c.s.u.ConfigBuilder ] [main] - Parsed config file:
{
"env" : {
"execution.parallelism" : 1,
"job.mode" : "STREAMING",
"checkpoint.interval" : 5000,
"read_limit.bytes_per_second" : 7000000,
"read_limit.rows_per_second" : 400
},
"source" : [
{
"base-url" : "jdbc:postgresql://X.X.X.X:5434/postgres",
"password" : "XXXX",
"table-names" : [
"postgres.public.table_name"
],
"result_table_name" : "customers_Postgre_cdc",
"database-names" : [
"postgres"
],
"schema-names" : [
"public"
],
"plugin_name" : "Postgres-CDC",
"username" : "XXXX"
}
],
"transform" : [],
"sink" : [
{
"plugin_name" : "Console"
}
]
}
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:199)
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 'Postgres-CDC'.
at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:100)
at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:320)
at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:181)
at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:161)
at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:146)
... 2 more
Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Can not find catalog table with factoryId [Postgres]
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.postgres.source.PostgresIncrementalSourceFactory.lambda$createSource$1(PostgresIncrementalSourceFactory.java:91)
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
PG Log
2024-04-09 15:25:18.370 UTC [128133] postgres@postgres LOG: execute <unnamed>: SET extra_float_digits = 3
2024-04-09 15:25:18.371 UTC [128133] postgres@postgres LOG: execute <unnamed>: SET application_name = 'PostgreSQL JDBC Driver'
2024-04-09 15:25:18.383 UTC [128133] postgres@postgres LOG: execute <unnamed>: select datname from pg_database
it is ok now, thanks.
Are you referring to the issue of account permissions for connecting to pg?
It could be, or it could happen because of a connection timeout, or because of a table name definition error
The task runs normally, but no data is written to starrocks,no exception log
No specific information, can not determine why
Are you referring to the issue of account permissions for connecting to pg?
It could be, or it could happen because of a connection timeout, or because of a table name definition error
The task runs normally, but no data is written to starrocks,no exception log
No specific information, can not determine why
Already solved,thanks
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.
@Asura7969 hi,how did you resolve it? I also had the same error
@Asura7969 hi,how did you resolve it? I also had the same error
@Carl-Zhou-CN my config like this `env {
execution.parallelism = 1 job.mode = "STREAMING" checkpoint.interval = 5000 read_limit.bytes_per_second=7000000 read_limit.rows_per_second=400 }
source { Postgres-CDC { startup.mode = "INITIAL" format= "COMPATIBLE_DEBEZIUM_JSON" username = "user" password = "wpwd" table-names = ["postgres.schema.table"] base-url = "jdbc:postgresql://url/postgres" } }
transform {
}
sink { Doris { fenodes = "url" username = root password = "pw" database = "${database_name}" table = "${table_name}" sink.label-prefix = "some_sink" sink.enable-2pc = "true" sink.enable-delete = "true" needs_unsupported_type_casting=true schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST" data_save_mode = "APPEND_DATA" doris.config { format = "json" read_json_by_line = "true" } } }`
Search before asking
What happened
Can not find catalog table with factoryId [Postgres]
SeaTunnel Version
2.3.4
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
Zeta
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
Code of Conduct