2013-08-04 142 views
0

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

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! 

感谢

回答

2

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

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

在这里看到:

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

+0

codek,你可以adivse这个@ http://stackoverflow.com/questions/24427976/unable-to-get-vfs-file-object-for-filename – Surya

相关问题