apache storm start error normclasspath=cygpath if sys.platform=='cygwin'else identity

jdzmm42g  于 2023-04-07  发布在  Storm
关注(0)|答案(2)|浏览(314)

我正在尝试在centos 5.8中设置storm 0.9.2
安装依赖项之前
jzmq,zeromq 4.0.4版
这是我的错误日志

File "./storm", line 51
normclasspath = cygpath if sys.platform == 'cygwin' else identity
                         ^
SyntaxError: invalid syntax
4zcjmb1e

4zcjmb1e1#

这是一个python版本的问题。storm文件是一个python脚本文件。似乎storm在0.9.2中更新了python版本。
Python2.6或更高版本可以解决这个问题。

bogh5gae

bogh5gae2#

这对我在python3.4上安装的redhat6有效。我把杂烩换了 /bin/storm 文件来源: #!/usr/bin/python 收件人: #!/usr/bin/env python

相关问题