WtzqCy
WtzqCy

Reputation: 189

GCP Apache Beam Dataflow JDBC IO Connection Error

Problem

When trying to deploy an Apache Beam Pipeline on Google Cloud Platform Dataflow service which connects to a Oracle 11gR2 (11.2.0.4) database to retrieve rows, I received the following error when using the Apache Beam JdbCIO Transform:

Error message from worker: java.lang.RuntimeException: org.apache.beam.sdk.util.UserCodeException: java.sql.SQLException: Cannot create PoolableConnectionFactory (ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone region not found )

Upvotes: 0

Views: 876

Answers (1)

WtzqCy
WtzqCy

Reputation: 189

To solve the problem, I updated the pom.xml

<!--https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc6 -->
<dependency>
    <groupId>com.oracle.database.jdbc</groupId>
    <artifactId>ojdbc6</artifactId>
    <version>11.2.0.4</version>
</dependency>

Upvotes: 1

Related Questions