当前位置:   article > 正文

【已解决】Caused by: java.net.SocketException: Connection reset by peer: socket write error_python worker exited unexpectedly (crashed)

python worker exited unexpectedly (crashed)

Caused by: java.net.SocketException: Connection reset by peer: socket write error

问题

pycharm中运行时报错了ERROR PythonRunner: Python worker exited unexpectedly (crashed)
测试运行print(input_rdd.first())可以打印出来,但是print(input_rdd.count())触发函数就会报错

思路

print(input_rdd.count())
ERROR PythonRunner: Python worker exited unexpectedly (crashed)的意思是Python worker意外退出(崩溃)

21/10/24 10:24:48 ERROR PythonRunner: Python worker exited unexpectedly (crashed)
java.net.SocketException: Connection reset by peer: socket write error
对于解决这个问题的方法,小编网上查询了一下,出现这种问题可能是很多情况导致的。就目前小编帮助解决的这个情况,在windows系统本地运行的spark,是软件的问题,数据量有点大,在pycharm上运行可能会报错。

解决

更换到Linux虚拟机运行,或减少测试数据量。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/562683
推荐阅读
相关标签
  

闽ICP备14008679号