Anyone using flink oracle-cdc on Ververica Platfor...
# troubleshooting
h
Anyone using flink oracle-cdc on Ververica Platform? I followed the instructions, customer image vvp-gateway to put the necessary files
connector-meta.yaml, flink-sql-connector-oracle-cdc-xxx.jar, ojdbc8.jar , xdb-xxxx.jar
into the
/vvp/sql/opt/connectors/oracle-cdc
directory but still got the error
Caused by: org.apache.flink.util.FlinkRuntimeException: Failed to discover captured tables for enumerator
at org.apache.flink.cdc.connectors.base.source.IncrementalSource.createEnumerator(IncrementalSource.java:166)
at org.apache.flink.runtime.source.coordinator.SourceCoordinator.start(SourceCoordinator.java:225)
... 34 more
Caused by: java.lang.RuntimeException: Failed to resolve Oracle database version
Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@
I even used maven to add dependencies and package
ojdbc8, xdb
into
flink-sql-connector-oracle-cdc-xxx.jar
but still no success.
`CREATE TABLE
vvp
.
CDC
.
T24SB_ODS_COMPANY
(` ``RECID` VARCHAR(2147483647),` ``COMPANY_NAME` VARCHAR(2147483647),` ``NAME_ADDRESS` VARCHAR(2147483647),` ``MNEMONIC` VARCHAR(2147483647),` ``CURR_NO` VARCHAR(2147483647),` ``INPUTTER` VARCHAR(2147483647),` ``DATE_TIME` DATE,` ``AUTHORISER` VARCHAR(2147483647),` ``CO_CODE` VARCHAR(2147483647),` ``NAME_ADDRESS2` VARCHAR(2147483647),` ``COMPANY_NAME_VN` VARCHAR(2147483647),` ``TAX_CODE` VARCHAR(2147483647),` ``FINANCIAL_COM` VARCHAR(2147483647),` ``FINANCIAL_MNE` VARCHAR(2147483647),` ``COMMIT_ACTION` VARCHAR(2147483647),` ``BANKING_DATE` DATE`
)
COMMENT ''
WITH (
'connector' = 'oracle-cdc',
'database-name' = '',
'hostname' = '',
'password' = '',
'port' = '1521',
'schema-name' = '',
'table-name' = '',
'username' = ''
);
Here is my create table statement
j
Hi @Hải Nguyễn Not sure whether you are our customer.... If so, feel free to reach us directly via our customer portal. Otherwise, you can also reach us via our home page where there is a form you can fill out the info about your question.
h
@Jun Qin I am in POC process and using trial license.
a
Hi @Hải Nguyễn, you can upload Oracle CDC connector to VVP: - download this file: https://repo1.maven.org/maven2/org/apache/flink/flink-sql-connector-oracle-cdc/3.1.0/flink-sql-connector-oracle-cdc-3.1.0.jar - upload connector to VVP connectors via SQL -> Connectors.
try to add the Oracle JDBC driver manually via the Additional Dependencies field. Pick the driver version as per your Oracle instance version: https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html
h
@Alexey Novakov i tried both uploading from UI but got error
Invalid connector configuration
Cannot discover a connector using option: 'connector'='oracle-cdc'
Cause: Could not find any factory for identifier 'oracle-cdc' that implements 'org.apache.flink.table.factories.DynamicTableFactory' in the classpath.
I want to pre-select via session cluster and "Additional dependencies in session clusters are not supported"
@Alexey Novakov does that mean it only works with standalone deployments because "Additional dependencies in session clusters are not supported". Am I right?
a
Both should work, I think you are missing some step to make it work.
h
@Alexey Novakov in session cluster i don't see Additional Dependencies option
a
You are right, session clusters do not support it yet. But it should work without them in terms of JDBC driver. Did you make the oracle-cdc connector work for normal Deployments?
h
@Alexey Novakov I have success with deployment. Thanks for help. However, is it possible to run flink cdc on session cluster?
a
Ok, great. Yes, are you asking about Oracle-CDC specifically?
h
@Alexey Novakov yes, I am interested in oracle-cdc for now.
a
Ok, let me test it, I think it should work
h
@Alexey Novakov thank you. Good luck!
a
@Hải Nguyễn you are right, oracle-cdc does not work at the moment in session cluster, but it works in the Deployments
👍 1
In Deployments you add Oracle driver in Additional Dependencies.
A workaround for Session Clusters and SQL Editor is to use JDBC connector instead.
h
@Alexey Novakov thank you, I just went through the Lunar New Year holiday so I read the message a bit late.
✅ 1