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

时间:2020-09-12 05:26:56

标签: python pyspark apache-spark-ml py4j johnsnowlabs-spark-nlp

我正在烧瓶应用程序内部使用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

0 个答案:

没有答案