Hi everyone, I'm trying to connect to an Oracle da...
# pyflink
a
Hi everyone, I'm trying to connect to an Oracle database using PyFlink. When I use Java with the same Oracle user, I can access a specific table/view without any issue. However, when I try the same connection and query in PyFlink, I get the following error:
table or view does not exist
• The table/view definitely exists in the Oracle database. • The Oracle user has the required permissions (as verified in Java). • I'm using the same JDBC URL and credentials in both Java and PyFlink. Has anyone experienced this kind of issue where access works in Java but fails in PyFlink? Could this be related to classpath, driver behavior, or something specific to how PyFlink handles Oracle connections? Any help would be appreciated! Thanks in advance.
d
@afnan amin Could you share some code snippets or screenshots? (both the Java ones and the Python ones)
a
Hi @Dian Fu i figure out that issue but now i am getting this issue when trying to run orcale flink job using pyflink
Caused by: java.util.ServiceConfigurationError: io.debezium.engine.DebeziumEngine$BuilderFactory: io.debezium.embedded.ConvertingEngineBuilderFactory not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1237)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
at io.debezium.engine.DebeziumEngine.create(DebeziumEngine.java:293)
at io.debezium.engine.DebeziumEngine.create(DebeziumEngine.java:287)
at io.debezium.engine.DebeziumEngine.create(DebeziumEngine.java:273)
at org.apache.flink.cdc.debezium.DebeziumSourceFunction.run(DebeziumSourceFunction.java:412)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:67)
at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:333)