Kettle连接postgresql经常报IO错误

Bleache 2021-05-09 06:28:05
kettle转换每天都会报错IO错误好几次, 重启数据库服务,关闭重新打开kettle, 或者等会也能正常运行,然后过段时间继续报错,求教大神这个该如何解决是哪方面的问题,困扰好久了


具体报错内容如下
2021/05/09 18:13:16 - 插入 / 更新.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : Error in step, asking everyone to stop because of:
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : Error in step, asking everyone to stop because of:
2021/05/09 18:13:16 - 插入 / 更新.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2021/05/09 18:13:16 - 插入 / 更新.0 - Error looking up row in database
2021/05/09 18:13:16 - 插入 / 更新.0 - An I/O error occurred while sending to the backend.
2021/05/09 18:13:16 - 插入 / 更新.0 -
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3108)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3087)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3083)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.lookupValues(InsertUpdate.java:89)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.processRow(InsertUpdate.java:299)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2021/05/09 18:13:16 - 插入 / 更新.0 - at java.lang.Thread.run(Thread.java:748)
2021/05/09 18:13:16 - 插入 / 更新.0 - Caused by: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:481)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:401)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:164)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:114)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3093)
2021/05/09 18:13:16 - 插入 / 更新.0 - ... 6 more
2021/05/09 18:13:16 - 插入 / 更新.0 - Caused by: java.net.SocketException: Connection reset by peer: socket write error
2021/05/09 18:13:16 - 插入 / 更新.0 - at java.net.SocketOutputStream.socketWrite0(Native Method)
2021/05/09 18:13:16 - 插入 / 更新.0 - at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
2021/05/09 18:13:16 - 插入 / 更新.0 - at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
2021/05/09 18:13:16 - 插入 / 更新.0 - at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
2021/05/09 18:13:16 - 插入 / 更新.0 - at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
2021/05/09 18:13:16 - 插入 / 更新.0 - at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:886)
2021/05/09 18:13:16 - 插入 / 更新.0 - at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:857)
2021/05/09 18:13:16 - 插入 / 更新.0 - at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
2021/05/09 18:13:16 - 插入 / 更新.0 - at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
2021/05/09 18:13:16 - 插入 / 更新.0 - at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.core.PGStream.flush(PGStream.java:665)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:1470)
2021/05/09 18:13:16 - 插入 / 更新.0 - at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:321)
2021/05/09 18:13:16 - 插入 / 更新.0 - ... 13 more
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - Error looking up row in database
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - An I/O error occurred while sending to the backend.
2021/05/09 18:13:16 - 插入 / 更新--detail.0 -
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3108)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3087)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3083)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.lookupValues(InsertUpdate.java:89)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.trans.steps.insertupdate.InsertUpdate.processRow(InsertUpdate.java:299)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at java.lang.Thread.run(Thread.java:748)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - Caused by: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:481)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:401)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:164)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:114)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.pentaho.di.core.database.Database.getLookup(Database.java:3093)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - ... 6 more
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - Caused by: java.net.SocketException: Connection reset by peer: socket write error
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at java.net.SocketOutputStream.socketWrite0(Native Method)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:886)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:857)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.core.PGStream.flush(PGStream.java:665)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:1470)
2021/05/09 18:13:16 - 插入 / 更新--detail.0 - at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:321)
...全文
2397 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_41912931 2023-04-25
  • 打赏
  • 举报
回复

解决了么?

pger 2023-04-09
  • 打赏
  • 举报
回复
qq_38049584 2021-07-13
  • 打赏
  • 举报
回复

可能是大批量插入的问题,建议大批量插入使用kettle中的<postgresql 批量加载>

Bleache 2021-07-20
  • 举报
回复
@qq_38049584 谢谢老铁我试试,这个问题之前一直没搞定,我就没把这个流程放到kettle来搞了,我回头试试这个方法
m0_55877767 2022-12-15
  • 举报
回复
@qq_38049584 不可以啊
m0_55877767 2022-12-15
  • 举报
回复
@qq_38049584 还有什么方法吗

972

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧