运行风暴雨云得到错误

时间:2015-12-18 13:43:26

标签: python-2.7 apache-storm

当我运行风暴雨云或其他风暴命令时,我得到相同的错误

~/work/apache-storm-0.9.5/bin$ storm nimbus
Traceback (most recent call last): File "/home/libin/work/apache-storm-0.9.5/bin/storm", line 514, in <module>
main()

File "/home/libin/work/apache-storm-0.9.5/bin/storm", line 511, in main
(COMMANDS.get(COMMAND, unknown_command))(*ARGS)

File "/home/libin/work/apache-storm-0.9.5/bin/storm", line 308, in nimbus
jvmopts = parse_args(confvalue("nimbus.childopts", cppaths)) + [
File "/home/libin/work/apache-storm-0.9.5/bin/storm", line 113, in confvalue
p = sub.Popen(command, stdout=sub.PIPE)

File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)

File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception

编辑:我修改了我的javahome,如@helloV所说,但得到同样的错误

1 个答案:

答案 0 :(得分:2)

检查你的JAVA_HOME。我遇到过同样的问题。我的JAVA_HOME指向错误的目录。一旦我正确设置了JAVA_HOME,问题就消失了。

echo $JAVA_HOME
> /usr/lib/jvm/jdk1.7.0_17