我将 Kettle 4.1 与 MySql 5.6 一起使用,并尝试运行第 4 章 demo来自 Pentaho Kettle Solutions: Building Open Source ETL Solutions with Pentaho Data Integration我有 "Dimension Lookup / Update" step失败并出现错误:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=1' at line 1
如何解决这个问题?
最佳答案
你需要 upgrade the version MySql Connector that Kettle is using 。转到您的 Kettle 安装的 libext\JDBC
文件夹并将 mysql-connector-java-3.1.14-bin.jar
替换为从 MySql's site 下载的较新版本的 Connector/J。只需从 zip 中提取较新的版本并将其复制过来,然后删除旧版本。然后重新运行,它应该可以工作。
就个人而言,连接器的 5.1.6
版本失败了,但它与 5.1.23
(当前最新版本)YMMV 一起工作。
关于mysql - 使用 MySql 时出现 "Dimension Lookup/Update"时如何解决不正确的 SQL 语法错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15274768/