尝试连接到数据库时出现PDI错误

时间:2013-08-04 06:00:34

标签: pentaho kettle data-integration

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

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!

由于

1 个答案:

答案 0 :(得分:2)

这是一个长期运行的查询吗?要么;在PDI世界中,它可能是因为你的步骤在转换开始时开始,等待某事做,如果网写超时没有任何结果,那么你会看到这个错误。

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

见这里:

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

相关问题