Closed soumilshah1995 closed 9 months ago
any update
Hi @soumilshah1995 , I use postgresql version 14 envirment met the same error(I found flink-cdc-connector 2.4 version support to postgresql vesion 12). what is your postgresql version,now solved?
i solve the error,by config the property decoding.plugin.name
, as follow
CREATE TABLE test_s1 (
id INT,
name STRING
) WITH (
'connector' = 'postgres-cdc',
'hostname' = 'xxx',
'port' = '5432',
'username' = 'postgres',
'password' = 'postgres',
'database-name' = 'postgres',
'schema-name' = 'xxx',
'table-name' = 'xx',
'slot.name' = 'xxxx',
'decoding.plugin.name' = 'pgoutput',
-- experimental feature: incremental snapshot (default off)
'scan.incremental.snapshot.enabled' = 'true'
)
'slot.name'
is necessary, and 'decoding.plugin.name'
depends your postgres service config
i can give a try and let you know
Here are Steps
CREATE TABLE IF NOT EXISTS public.sales
(
salesid SERIAL PRIMARY KEY,
invoiceid integer,
itemid integer,
category text COLLATE pg_catalog."default",
price numeric(10,2),
quantity integer,
orderdate date,
destinationstate text COLLATE pg_catalog."default",
shippingtype text COLLATE pg_catalog."default",
referral text COLLATE pg_catalog."default",
updated_at TIMESTAMP DEFAULT NOW()
);
INSERT INTO public.sales (invoiceid, itemid, category, price, quantity, orderdate, destinationstate, shippingtype, referral)
VALUES (12345, 56789, 'Electronics', 99.99, 2, '2023-07-04', 'California', 'Standard', 'Google Search');
INSERT INTO public.sales (invoiceid, itemid, category, price, quantity, orderdate, destinationstate, shippingtype, referral)
VALUES (1002, 2002, 'Home Decor', 79.99, 1, '2023-06-20', 'Texas', 'Standard', 'Facebook Ad');
looks like it gets stuck on pending state i dont see tables in glue catlog
@menghe999 menghe999
org.apache.zeppelin.interpreter.InterpreterException: org.apache.zeppelin.interpreter.InterpreterException: org.apache.zeppelin.interpreter.InterpreterException: Fail to open FlinkInterpreter
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:76)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:844)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:752)
at org.apache.zeppelin.scheduler.Job.run(Job.java:172)
at org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:132)
at org.apache.zeppelin.scheduler.ParallelScheduler.lambda$runJobInScheduler$0(ParallelScheduler.java:46)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.zeppelin.interpreter.InterpreterException: org.apache.zeppelin.interpreter.InterpreterException: Fail to open FlinkInterpreter
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:76)
at org.apache.zeppelin.interpreter.Interpreter.getInterpreterInTheSameSessionByClassName(Interpreter.java:322)
at org.apache.zeppelin.interpreter.Interpreter.getInterpreterInTheSameSessionByClassName(Interpreter.java:333)
at org.apache.zeppelin.flink.FlinkSqlInterpreter.open(FlinkSqlInterpreter.java:48)
at org.apache.zeppelin.flink.FlinkStreamSqlInterpreter.open(FlinkStreamSqlInterpreter.java:41)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:70)
... 8 more
Caused by: org.apache.zeppelin.interpreter.InterpreterException: Fail to open FlinkInterpreter
at org.apache.zeppelin.flink.FlinkInterpreter.open(FlinkInterpreter.java:75)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:70)
... 13 more
Caused by: org.apache.flink.table.catalog.exceptions.CatalogException: Failed to determine whether database pgdb exists or not
at org.apache.flink.table.catalog.hive.HiveCatalog.databaseExists(HiveCatalog.java:455)
at org.apache.flink.table.catalog.hive.HiveCatalog.open(HiveCatalog.java:336)
at org.apache.flink.table.catalog.CatalogManager.registerCatalog(CatalogManager.java:211)
at org.apache.flink.table.api.internal.TableEnvironmentImpl.registerCatalog(TableEnvironmentImpl.java:371)
at org.apache.zeppelin.flink.FlinkScalaInterpreter.registerHiveCatalog(FlinkScalaInterpreter.scala:509)
at org.apache.zeppelin.flink.FlinkScalaInterpreter.open(FlinkScalaInterpreter.scala:141)
at org.apache.zeppelin.flink.FlinkInterpreter.open(FlinkInterpreter.java:70)
... 14 more
Caused by: MetaException(message:Unable to get database object: com.amazonaws.SdkClientException: Unable to execute HTTP request: Connect to glue.us-west-2.amazonaws.com:443 [glue.us-west-2.amazonaws.com/44.238.97.27, glue.us-west-2.amazonaws.com/50.112.112.45, glue.us-west-2.amazonaws.com/52.27.177.24, glue.us-west-2.amazonaws.com/54.245.186.171, glue.us-west-2.amazonaws.com/15.254.35.55, glue.us-west-2.amazonaws.com/44.232.7.23, glue.us-west-2.amazonaws.com/44.234.249.190, glue.us-west-2.amazonaws.com/52.12.9.39] failed: connect timed out)
at com.amazonaws.glue.catalog.metastore.GlueMetastoreClientDelegate.getDatabase(GlueMetastoreClientDelegate.java:270)
at com.amazonaws.glue.catalog.metastore.AWSCatalogMetastoreClient.getDatabase(AWSCatalogMetastoreClient.java:298)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.hadoop.hive.metastore.HiveMetaStoreClient$SynchronizedHandler.invoke(HiveMetaStoreClient.java:2327)
at com.sun.proxy.$Proxy43.getDatabase(Unknown Source)
at org.apache.flink.table.catalog.hive.client.HiveMetastoreClientWrapper.getDatabase(HiveMetastoreClientWrapper.java:130)
at org.apache.flink.table.catalog.hive.HiveCatalog.databaseExists(HiveCatalog.java:450)
... 20 more
Closing this issue as it is no longer valid or requires additional information. If the issue still exists, please report it on Apache Jira under the project Flink
, using the component tag Flink CDC
. Thank you!
I have a table called sales
i am able to connect and run query via PG Admin
Added the JAR files on KDA
trying out CDC connector in Zeppelin
Started the JOB
Error