0

执行 PDI 作业时出现以下错误。我确实有 mysql 驱动程序(libext/JDBC)。有人可以说,失败的原因是什么?尽管连接到数据库时出错,但我的数据库已启动,我可以通过命令提示符访问它。

Error occured while trying to connect to the database

Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
ERROR 03-08 11:05:10,595 - stepname- Error initializing step [Update]
ERROR 03-08 11:05:10,595 - stepname - Step [Update.0] failed to initialize!
INFO  03-08 11:05:10,595 - stepname - Finished reading query, closing connection.
ERROR 03-08 11:05:10,596 - stepname - Unable to prepare for execution of the transformation
ERROR 03-08 11:05:10,596 - stepname - org.pentaho.di.core.exception.KettleException:
We failed to initialize at least one step.  Execution can not begin!

谢谢

4

1 回答 1

2

这是一个长期运行的查询吗?或者; 在 PDI 世界中,这可能是因为您的步骤在转换开始时开始,等待某事做,如果网络写入超时没有发生任何事情,那么您将看到此错误。

如果是这样,您的问题是由 MySQL 使用的超时引起的,并且经常需要从默认值 10 分钟增加。

看这里:

http://wiki.pentaho.com/display/EAI/MySQL

于 2013-08-04T18:10:27.973 回答