Michael Olawepo
01/11/2024, 11:08 PMflink-sql-connector-sqlserver-cdc-3.0.0.jar file and copied here /opt/flink/lib in the container
created a table running the sql:
CREATE TABLE orders (
order_id int,
customer_id int NULL,
order_status tinyint NOT NULL,
order_date date NOT NULL,
required_date date NOT NULL,
shipped_date date NULL,
store_id int NOT NULL,
staff_id int NOT NULL,
updated_at DATE NULL,
CONSTRAINT PK__orders__4659622969E5DF61 PRIMARY KEY (order_id) NOT ENFORCED
) WITH (
'connector' = 'sqlserver-cdc',
'hostname' = 'localhost',
'port' = '1433',
'username' = 'sa',
'password' = 'mssql1Ipw',
'database-name' = 'BikeStores',
'table-name' = 'sales.orders'
);
When i do a select *SELECT* * *FROM* _*orders*_; the i get
[ERROR] Could not execute SQL statement. Reason:
java.lang.ClassNotFoundException: com.ververica.cdc.connectors.sqlserver.source.SqlServerSourceBuilder$SqlServerIncrementalSource