Kettle运行的过程中提示IO Error:Connection reset

在近期的一次作业中出现了偶发信的报错:

Pan - Start of run.
2022/05/31 22:52:06 - KETTLE_TABLE - Dispatching started for transformation [KETTLE_TABLE]
2022/05/31 22:53:47 - ?? / ??.0 - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : An error occurred during initialization, processing will be stopped: 
2022/05/31 22:53:47 - ?? / ??.0 - Error occurred while trying to connect to the database
2022/05/31 22:53:47 - ?? / ??.0 - 
2022/05/31 22:53:47 - ?? / ??.0 - Error connecting to database: (using class oracle.jdbc.driver.OracleDriver)
2022/05/31 22:53:47 - ?? / ??.0 - IO Error: Connection reset
2022/05/31 22:53:47 - ?? / ??.0 - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : Error initializing step [?? / ??]
2022/05/31 22:53:47 - KETTLE_TABLE - ERROR (version 5.4.0.1-130, build 1 from 2015-06-14_12-34-55 by buildguy) : Step [?? / ??.0] failed to initialize!
2022/05/31 22:53:47 - ???.0 - Finished reading query, closing connection.

1、根据日志的提示,首先确认为数据库连接问题(Error connecting to database)

在更新完Kettle目录下的ojdbc.jar包,问题无法解决。

2、再根据IO Error: Connection reset提示,结合这个故障是偶发性的及网上的文献,猜测是

连接ORACLE服务器时,客户端要生成随机密钥,进行客户端认证,在JDK中默认使用/dev/random(阻塞式随机生成),这个方式就会导致连接reset,无法正常连接。

解决方法:

1、find / -name java.security

2、vim /路径/java.security

将securerandom.source=/dev/random修改成securerandom.source=/dev/urandom

3、现再新运行作业及转换

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值