0

运行 mincemeat 时出现错误。代码在 octo.py 中运行正常。我没有将代码放在课程作业中,但我真的更喜欢肉末。错误如下:

C:\Python27>python mincemeat.py -p changeme localhost

C:\Python27>python mincemeat.py -v changeme localhost
Traceback (most recent call last):
  File "mincemeat.py", line 376, in <module>
    run_client()
  File "mincemeat.py", line 372, in run_client
    client.conn(args[0], options.port)
  File "mincemeat.py", line 149, in conn
    self.connect((server, port))
  File "C:\Python27\lib\asyncore.py", line 347, in connect
    err = self.socket.connect_ex(address)
  File "C:\Python27\lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno 11001] getaddrinfo failed

C:\Python27>ping localhost

Pinging anand [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
4

1 回答 1

0

mincemeat.py is terminating because it does not have any work to do. Follow the example at https://github.com/michaelfairley/mincemeatpy. You need to run your mapreduce script then mincemeat.py.

于 2013-09-21T03:10:40.087 回答