风暴无法从normclasspath开始

时间:2015-01-10 18:42:49

标签: apache-storm

无法启动apache风暴。

root@localhost ~]# storm nimbus
  File "/home/mahendra/storm/bin/storm", line 51
    normclasspath = cygpath if sys.platform == 'cygwin' else identity
                             ^
SyntaxError: invalid syntax
[root@localhost ~]#


[root@localhost ~]# python -V
Python 2.7
[root@localhost ~]#

1 个答案:

答案 0 :(得分:0)

这适用于我在Python 3.4上安装的Redhat 6。我将/bin/storm文件中的哈希包从:#!/usr/bin/python更改为:#!/usr/bin/env python