尝试连接到Java服务器时发生错误127.0.0.1:34663

问题描述

我正在烧瓶应用程序内部使用sparknlp。 flask应用程序的目的是聆听kafka服务器,获取故事,对其进行处理并将其广播到另一个kafka主题。当我启动应用程序时,它运行良好。但是几个小时后,它失败并抛出此错误错误的堆栈跟踪为:

2020-09-12 04:48:32,241 ERROR py4j.java_gateway Thread-3: An error occurred while trying to connect to the Java server (127.0.0.1:34663)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/py4j/java_gateway.py",line 929,in _get_connection
    connection = self.deque.pop()
IndexError: pop from an empty deque

During handling of the above exception,another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/py4j/java_gateway.py",line 1067,in start
    self.socket.connect((self.address,self.port))
ConnectionRefusedError: [Errno 111] Connection refused

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)