Hi all,
I am trying to train built in BERT layer on google colab but getting connection refused error.
Kindly suggest possible reasons for this.
logs
creating: createTFTrainingHelper
creating: createIdentityCriterion
creating: createTFParkSampleToMiniBatch
creating: createEstimator
creating: createMaxIteration
creating: createEveryEpoch
Streaming output truncated to the last 5000 lines.
answer = smart_decode(self.stream.readline()[:-1])
File "/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 985, in send_command
response = connection.send_command(command)
File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 1164, in send_command
"Error while receiving", e, proto.ERROR_ON_RECEIVE)
py4j.protocol.Py4JNetworkError: Error while receiving
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (
127.0.0.1:42141)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-20-ea08eebe72cc>", line 1, in <module>
estimator.train(input_fn, steps = 1)
File "/usr/local/lib/python3.7/dist-packages/zoo/tfpark/estimator.py", line 170, in train
opt.optimize(MaxIteration(steps))
File "/usr/local/lib/python3.7/dist-packages/zoo/tfpark/tf_optimizer.py", line 780, in optimize
checkpoint_trigger=checkpoint_trigger)
File "/usr/local/lib/python3.7/dist-packages/zoo/pipeline/estimator/estimator.py", line 168, in train_minibatch
validation_method)
File "/usr/local/lib/python3.7/dist-packages/zoo/common/utils.py", line 133, in callZooFunc
raise e
File "/usr/local/lib/python3.7/dist-packages/zoo/common/utils.py", line 127, in callZooFunc
java_result = api(*args)
File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 1257, in __call__
answer, self.gateway_client, self.target_id,
self.name)
File "/usr/local/lib/python3.7/dist-packages/pyspark/sql/utils.py", line 63, in deco
return f(*a, **kw)
File "/usr/local/lib/python3.7/dist-packages/py4j/protocol.py", line 328, in get_return_value
format(target_id, ".", name), value)
py4j.protocol.Py4JJavaError: <unprintable Py4JJavaError object>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/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.7/dist-packages/py4j/java_gateway.py", line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/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.7/dist-packages/py4j/java_gateway.py", line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque