运行百果馅时出错

时间:2013-09-20 00:41:16

标签: python mapreduce mincemeat

我在运行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

1 个答案:

答案 0 :(得分:0)

mincemeat.py正在终止,因为它没有任何工作要做。按照https://github.com/michaelfairley/mincemeatpy上的示例进行操作。您需要运行mapreduce脚本然后运行mincemeat.py。