[Py4j-users] Gateway does not shut down properly?
Status: Beta
Brought to you by:
barthe
From: Alex G. <ale...@ne...> - 2015-11-07 20:24:02
|
The following code: import logging from py4j.java_gatewayimport launch_gateway, JavaGateway, GatewayParameters logging.basicConfig(level=logging.DEBUG) port = launch_gateway() params = GatewayParameters(port=port,eager_load=True) gw = JavaGateway(gateway_parameters=params) gw.shutdown() Produces the following: DEBUG:py4j.java_gateway:Exception while shutting down a socket Traceback (most recent call last): File "/home/alex/virtualenv/asphalt/lib/python3.4/site-packages/py4j/java_gateway.py", line 301, in quiet_shutdown socket_instance.shutdown(socket.SHUT_RDWR) OSError: [Errno 9] Bad file descriptor INFO:py4j.java_gateway:Exception while shutting down callback server Traceback (most recent call last): File "/home/alex/virtualenv/asphalt/lib/python3.4/site-packages/py4j/java_gateway.py", line 1428, in shutdown_callback_server self._callback_server.shutdown() AttributeError: 'NoneType' object has no attribute 'shutdown' DEBUG:py4j.java_gateway:Exception while closing Traceback (most recent call last): File "/home/alex/virtualenv/asphalt/lib/python3.4/site-packages/py4j/java_gateway.py", line 290, in quiet_close closable.close() AttributeError: 'NoneType' object has no attribute 'close' Why is this happening? |