简体   繁体   中英

Spring Cloud Dataflow Add Oracle Driver to CLASSPATH

We have a requirement to create Streams in Spring Cloud Dataflow that retrieve data from an Oracle database. However, as documented, Dataflow doesn't come pre-packaged with the Oracle drivers. We're currently deploying the application with a custom Helm chart to Kubernetes. We've tried the following:

  1. Added the jar to the /lib/ directory
  2. Added the jar to another directory and set the CLASSPATH environment variable to ".:/libs/ojdbc10.jar"
  3. Tried to specify the location in the LOADER_PATH variable

All the documentation suggests that we more than likely need to roll our own version of Spring Cloud Dataflow. However, if we do that we will lose the ability to utilize the Kubernetes default deployer. And my employer is adamantly opposed to doing much development.

Is there a way to add the Oracle driver to the classpath WITHOUT rolling our own version of Spring Cloud Dataflow? Is there any directory out there that will dynamically add the driver to Spring?

The most common approach at customers/community is that you pull the GA-released tag from the SCDF repo, add your desired licensed DB driver dependency, and build it for your use.

If that is impossible for your ORG, there's another procedure in our docs — see under Add a JDBC Driver (Optional) section.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM