Gil Kirkpatrick
03/24/2023, 8:47 PMCREATE TABLE FOO (id STRING, name STRING)
WITH (
'connector.type'='kafka',
'connector.version'='universal',
'connector.topic'='foo',
'format.type'='json',
'connector.properties.bootstrap.servers'='kafka:29091',
'connector.properties.group.id'='flink'
);
I get this error when I try to select from the table:
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.factories.NoMatchingTableFactoryException: Could not find a suitable table factory for 'org.apache.flink.table.factories.TableSourceFactory' in
the classpath.
Reason: Required context properties mismatch.
The following properties are requested:
connector.properties.bootstrap.servers=kafka:29091
connector.properties.group.id=flink
connector.topic=foo
connector.type=kafka
connector.version=universal
format.type=json
schema.0.data-type=VARCHAR(<tel:2147483647|2147483647>)
schema.0.name=id
schema.1.data-type=VARCHAR(<tel:2147483647|2147483647>)
schema.1.name=name
The following factories have been considered:
org.apache.flink.table.sources.CsvBatchTableSourceFactory
org.apache.flink.table.sources.CsvAppendTableSourceFactory
I interpreted the error as a symptom of not having the appropriate JAR files in /opt/flink/lib, so I added flink-sql-connector-kafka.jar, flink-connector-kafka.jar, and flink-table-api-java-1.17.0.jar to the image, but the error persists. The container is based off the Flink 1.17.0 container image on Docker Hub.Gil Kirkpatrick
03/25/2023, 1:46 AMGil Kirkpatrick
03/25/2023, 1:47 AMMartijn Visser
03/27/2023, 8:22 AMI guess they changed recently, as this code had worked with 1.12.Well Flink 1.12 is 3 years old 😅 These properties were removed with Flink 1.14, as was highlighted in the release notes https://nightlies.apache.org/flink/flink-docs-release-1.14/release-notes/flink-1.14/#remove-tableenvironmentconnect Can you post your DDL? It looks like you still might be using incorrect property options
Gil Kirkpatrick
03/28/2023, 7:52 PMCREATE TABLE FOO (id STRING, name STRING)
WITH (
'connector'='kafka',
'topic'='foo',
'format'='json', 'properties.bootstrap.servers'='kafka:29091',
'properties.group.id'='flink',
'scan.startup.mode'='earliest-offset'
);Faisal A. Siddiqui
06/26/2023, 10:44 PM'properties.group.id'='flink' is used for when flink maintains the checkpointMartijn Visser
06/27/2023, 3:03 PMCommitting offset is only for exposing the progress of consumer and consuming group for monitoring.
Faisal A. Siddiqui
06/29/2023, 5:34 PMinsert into table3 select .. from T1 inner join T2
semantic
In this case, does t3 becomes the consumer group and kafka would display each table how far is consumer group T3 source operator reading from T1 and T2 kafka topics ??Martijn Visser
06/29/2023, 7:05 PMFaisal A. Siddiqui
06/29/2023, 7:57 PMinsert into table3 select .. from T1 inner join T2
and Job2 performing
insert into T4 select .. from T1 left outer join T2
then at a time T1 will be representing progress of T1 from Job1 or Job2 .. how would it represent both??Martijn Visser
06/29/2023, 8:45 PM