New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeEncodeError #6
Comments
Hi, thanks for reporting this. The error indicates that this question mark symbol below appears in either HTTP header or content, when updating parameters back from executers to master (while getting parameters apparently works.) http://graphemica.com/%EF%BF%BD Option 1: Master URL is broken. This is somewhat unlikely, as in line 215 it gets parameters from there. Can you check or even send me your master URL? Could you tell me more about your setup? Python 2 or 3 (urllib has been moved)? Does it work in local mode? Does it break all the time or just here and there? Does it work with exactly one executer? I would gladly discuss this further! Thanks. |
Hey @anndro, do you have any feedback for me? These serialization errors are fairly common with Spark and currently it's unclear to me if this is due to elephas or your setup. |
Hello, Sorry for the delay I was working last 2 days to fix issue. I figured out the error was because of the python version. |
Cool, glad to hear that. In case you have an interesting application / example to add, please let me know. |
Hello,
When I try to run elephas I got some errors.
Command:
../spark/bin/spark-submit --driver-memory 2G --executor-memory 30G ./run_distributed.py -v
Output:
172.20.20.111 - - [14/Dec/2015 17:48:18] "GET /parameters HTTP/1.1" 200 -
15/12/14 17:48:56 WARN TaskSetManager: Lost task 7.0 in stage 1.0 (TID 43, 172.20.20.107): org.apache.spark.api.python.PythonException: Traceback (most recent call last):
File "/home/torque/mucahit/spark-1.5.2-bin-hadoop2.6/python/lib/pyspark.zip/pyspark/worker.py", line 111, in main
process()
File "/home/torque/mucahit/spark-1.5.2-bin-hadoop2.6/python/lib/pyspark.zip/pyspark/worker.py", line 106, in process
serializer.dump_stream(func(split_index, iterator), outfile)
File "/home/torque/mucahit/spark-1.5.2-bin-hadoop2.6/python/lib/pyspark.zip/pyspark/serializers.py", line 263, in dump_stream
vs = list(itertools.islice(iterator, batch))
File "/home/torque/mucahit/keras_venv/local/lib/python2.7/site-packages/elephas/spark_model.py", line 222, in train
put_deltas_to_server(deltas, self.master_url)
File "/home/torque/mucahit/keras_venv/local/lib/python2.7/site-packages/elephas/spark_model.py", line 36, in put_deltas_to_server
return urllib2.urlopen(request).read()
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 401, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 419, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 1211, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1178, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/home/torque/mucahit/keras_venv/lib/python2.7/httplib.py", line 963, in request
File "/home/torque/mucahit/keras_venv/lib/python2.7/httplib.py", line 997, in _send_request
File "/home/torque/mucahit/keras_venv/lib/python2.7/httplib.py", line 959, in endheaders
File "/home/torque/mucahit/keras_venv/lib/python2.7/httplib.py", line 819, in _send_output
File "/home/torque/mucahit/keras_venv/lib/python2.7/httplib.py", line 795, in send
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(_args)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 183: ordinal not in range(128)
15/12/14 17:48:56 INFO TaskSetManager: Starting task 7
The text was updated successfully, but these errors were encountered: