Fiware - 运行Cosmos CLI错误

时间:2015-04-26 11:12:26

标签: fiware fiware-orion

我试图从中运行代码 http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/BigData_Analysis_-_User_and_Programmer_Guide

我陷入困境

  

“的easy_install   https://forge.fi-ware.org/frs/download.php/1309/cosmos-0.16.0-py2.7.egg

系统打印输出:

Downloading https://forge.fi-ware.org/frs/download.php/1309/cosmos-0.16.0-py2.7.egg
Processing cosmos-0.16.0-py2.7.egg
removing '/usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg' (and everything under it)
creating /usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg
Extracting cosmos-0.16.0-py2.7.egg to /usr/lib/python2.6/site-packages
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg/cosmos/cli/command_util.py', 145, 20, '    return {k: v for k, v in json.iteritems() if k not in filter_keys}\n'))

cosmos 0.16.0 is already the active version in easy-install.pth
Installing cosmos script to /usr/bin

Installed /usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg
Processing dependencies for cosmos==0.16.0
Searching for cosmos==0.16.0
Reading http://pypi.python.org/simple/cosmos/
No local packages or download links found for cosmos==0.16.0
error: Could not find suitable distribution for Requirement.parse('cosmos==0.16.0')

但在那之后我意识到我应该安装会议和宇宙中使用的图像,所以我运行

# cosmos

这是我的系统打印出来的:

Traceback (most recent call last):
  File "/usr/bin/cosmos", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests

如何正确运行宇宙??

1 个答案:

答案 0 :(得分:0)

为了访问FIWARE LAB中已部署的类似Hadoop的Cosmos实例,您不需要Cosmos CLI;这是为了在像Hadoop-as-a-service这样的Cosmos部署上按需创建新的集群,而FIWARE LAB则不是这样。

只需转到here并使用您的FIWARE LAB凭据创建一个Cosmos帐户。然后,按照该网站中指出的步骤进行操作。

关于Cosmos documentation,请在第2.3节之前忽略前几节。