spring-batch - Spring Batch 可以与 Amazon Redshift 一起使用吗?
问题描述
我正在尝试将 Spring Batch (4.0.1.RELEASE) 与 Amazon Redshift 一起使用。我在这里解决了 Redshift 不支持序列的第一个主要问题。
但是,现在我在尝试运行工作时遇到了这个问题:
10:57:07.122 ERROR [http-nio-8080-exec-4 ] [JobLaunchingService] [] Could not start job [demoJob]
org.springframework.dao.InvalidDataAccessApiUsageException: PreparedStatementCallback; SQL [INSERT INTO BATCH_JOB_EXECUTION_CONTEXT (SHORT_CONTEXT, SERIALIZED_CONTEXT, JOB_EXECUTION_ID) VALUES(?, ?, ?)[Amazon][JDBC](10220) Driver does not support this optional feature.; nested exception is java.sql.SQLFeatureNotSupportedException: [Amazon][JDBC](10220) Driver does not support this optional feature.
这与 Redshift 1.2.16.1027 JDBC 驱动程序有关。
甚至可以使用 Redshift 作为批处理数据库吗?关于如何解决这个问题的任何建议?
解决方案
Amazon Redshift 不是 Spring Batch 支持的数据库。此处列出了支持的数据库:https ://github.com/spring-projects/spring-batch/tree/master/spring-batch-core/src/main/resources/org/springframework/batch/core 。
推荐阅读
- c# - 我正在尝试获得增值税和总计的最佳计算
- javascript - 如何访问复杂的 JSON 数组和对象数据?
- c++ - 如何在 C++ 的终端中显示图像?
- html - 如何在 IE11 中实现 CSS Grid?
- ruby-on-rails - Sidekiq 计划作业被自动删除(Sidekiq + Rails)
- elasticsearch - 过滤聚合结果
- c# - 如何在unity2d无尽赛跑者中生成地面
- scala - 我需要进行哪些更改才能使 Scala 2.13 MultiDict 作为 2.12 的 MultiMap 的替代品?
- javascript - 初始化后在 Vue 中使用 Mapbox GL JS
- r - 将表或表数组的元素添加到 R 中的数据框