Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MySQL Pentaho通信链路错误ETL_Mysql_Etl_Pentaho_Pentaho Spoon_Pentaho Data Integration - Fatal编程技术网

MySQL Pentaho通信链路错误ETL

MySQL Pentaho通信链路错误ETL,mysql,etl,pentaho,pentaho-spoon,pentaho-data-integration,Mysql,Etl,Pentaho,Pentaho Spoon,Pentaho Data Integration,当尝试在该月最后一天或该月第二个最后一天从DW加载一个月的数据时,在加载数据时,出现通信链路错误并停止正在运行的作业。由于这一原因,最后几组数据未加载 关于使用的转换步骤: 表格输入->数据库连接->流查找->表格输出 请帮忙。我们被这件事困住了 2019/01/11 05:42:18 - Table input.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected e

当尝试在该月最后一天或该月第二个最后一天从DW加载一个月的数据时,在加载数据时,出现通信链路错误并停止正在运行的作业。由于这一原因,最后几组数据未加载

关于使用的转换步骤:

表格输入->数据库连接->流查找->表格输出

请帮忙。我们被这件事困住了

2019/01/11 05:42:18 - Table input.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Unexpected error closing query : org.pentaho.di.core.exception.KettleDatabaseException: 
2019/01/11 05:42:18 - Table input.0 - Couldn't close query: resultset or prepared statements
2019/01/11 05:42:18 - Table input.0 - **Communications link failure**
2019/01/11 05:42:18 - Table input.0 - 
2019/01/11 05:42:18 - Table input.0 - **The last packet successfully received from the server was 109 milliseconds ago.  The last packet sent successfully to the server was 22 milliseconds ago.**

造成这个问题的原因有很多。如果我是你,我会检查以下几点

  • MySQL的问题-您应该检查在流程执行期间MySQL日志中是否有任何错误()
  • 这可能是内存问题。尝试增加Spoon的Java堆大小。上描述了类似的问题
  • 尝试优化MySQL或JDBC参数。例如,您可以增加MySQL服务器上的净写入超时和净读取超时,或者在JDBC驱动程序上重写BatchedStatements=true和useCompression=true

  • 这种问题也是由于长时间运行的查询而引起的,这种情况是由于
    net\u write\u timeout
    在默认情况下设置为
    60秒
    。此参数位于
    my.ini
    中,您可以将
    net\u write\u timeout
    的默认值更改为更大的值,以帮助您从该问题中恢复。

    这只是一个非常随意的猜测,但在非常特定的日期发生的故障有时是由计划在这些日期运行的批处理作业造成的。像备份作业、长时间运行的数据库转储、一些清理例程或类似的东西。我首先要检查数据库服务器是否大致在当时重启。您使用的是哪个pentaho版本?您使用的是哪个mysql jdbc连接jar文件版本?@WorkingHard。。我们正在使用pentaho 7.1和mysql-connector-java-5.1.46.jar进行mysql jdbc连接