Skip to content
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

在CentOS 6中无法运行 #49

Open
fengkaijia opened this issue Sep 19, 2015 · 0 comments
Open

在CentOS 6中无法运行 #49

fengkaijia opened this issue Sep 19, 2015 · 0 comments

Comments

@fengkaijia
Copy link

我用的是IUS的库安装的Python 2.7(因为这个库提供pip)。

运行Master或者Worker但不提供IP时无法启动:

[root@localhost ~]# coca master -s
unknown command options

附上IP后正常启动

[root@localhost ~]# coca master -s 地址
start master at: 地址:11103

但是就算是附上IP也无法关闭:

[root@localhost ~]# coca master -k 地址
Traceback (most recent call last):
  File "/usr/bin/coca", line 9, in <module>
    load_entry_point('Cola==0.1.0b0', 'console_scripts', 'coca')()
  File "/usr/lib/python2.7/site-packages/cola/cmdline.py", line 38, in execute
    args.func(args)
  File "/usr/lib/python2.7/site-packages/cola/commands/master.py", line 50, in run
    ctx = Context(is_client=True, master_addr=args.kill)
  File "/usr/lib/python2.7/site-packages/cola/context.py", line 110, in __init__
    self.addrs = [self.fix_addr(_ip) for _ip in self.ips]
  File "/usr/lib/python2.7/site-packages/cola/context.py", line 66, in <lambda>
    fix_addr = lambda _, addr: addr if ':' in addr \
TypeError: argument of type 'NoneType' is not iterable

提交作业时也必须给出Master:

[root@localhost ~]# coca job -u app/weibo/
Traceback (most recent call last):
  File "/usr/bin/coca", line 9, in <module>
    load_entry_point('Cola==0.1.0b0', 'console_scripts', 'coca')()
  File "/usr/lib/python2.7/site-packages/cola/cmdline.py", line 38, in execute
    args.func(args)
  File "/usr/lib/python2.7/site-packages/cola/commands/job.py", line 79, in run
    ctx = Context(is_client=True, master_addr=master_addr)
  File "/usr/lib/python2.7/site-packages/cola/context.py", line 82, in __init__
    raise ValueError('Master address must be supplied when local_mode is False')
ValueError: Master address must be supplied when local_mode is False

给出Master之后:

[root@localhost ~]# coca job -m 地址:11103 -u app/weibo/
Traceback (most recent call last):
  File "/usr/bin/coca", line 9, in <module>
    load_entry_point('Cola==0.1.0b0', 'console_scripts', 'coca')()
  File "/usr/lib/python2.7/site-packages/cola/cmdline.py", line 38, in execute
    args.func(args)
  File "/usr/lib/python2.7/site-packages/cola/commands/job.py", line 79, in run
    ctx = Context(is_client=True, master_addr=master_addr)
  File "/usr/lib/python2.7/site-packages/cola/context.py", line 110, in __init__
    self.addrs = [self.fix_addr(_ip) for _ip in self.ips]
  File "/usr/lib/python2.7/site-packages/cola/context.py", line 66, in <lambda>
    fix_addr = lambda _, addr: addr if ':' in addr \
TypeError: argument of type 'NoneType' is not iterable

以上问题同配置Ubuntu 14.04都是正常的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant