简体   繁体   English

Spring数据流Kubernetes JDBC驱动程序

[英]Spring Data Flow Kubernetes JDBC Drivers

I'm trying to deploy an jdbc-sink to a Helm based Kuberentes install of Spring Cloud Data Flow. 我正在尝试将jdbc-sink部署到Spring Cloud Data Flow的基于Helm的Kuberentes安装中。

How would I go about adding JDBC jars in order to make use of the starters? 我将如何添加JDBC jar以便利用启动器? I'm getting the following error when trying to deploy the app (in this case MySQL): 尝试部署应用程序时出现以下错误(在本例中为MySQL):

***************************
APPLICATION FAILED TO START
***************************
 Description:
 Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
     Property: driverclassname
    Value: com.mysql.cj.jdbc.Driver
    Origin: "driverClassName" from property source "source"
    Reason: Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader

Would I need to extend the existing starter, and manually add the Driver as there's no way of guaranteeing which driver it should be using? 我是否需要扩展现有的启动程序,并手动添加驱动程序,因为无法保证应使用哪个驱动程序?

Thanks! 谢谢!

We ship the OSS license-friendly drivers for few databases in SCDF and the app-starters that require database access, including the jdbc applications. 我们为SCDF中的少数数据库和要求数据库访问的应用程序启动程序(包括jdbc应用程序)提供了OSS许可友好的驱动程序。

For proprietary drivers, there's a procedure to patch the out-of-the-box app-starters that we maintain and ship — more details in the reference guide here . 对于专有驱动程序,有一个过程可以修补我们维护和交付的即用型应用程序启动器-有关更多详细信息,请参见此处的参考指南。

Once when you bundle the relevant driver in the classpath, you'd produce a docker image to then use it in SCDF. 一旦在类路径中捆绑了相关的驱动程序,便会生成一个docker映像,然后在SCDF中使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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