我正在尝试在amazon linux示例上安装并运行apache storm(1.0.2版)。当我是root用户时启动storm nimbus没有问题。换句话说,如果是,请使用以下命令
sudo su -
python /opt/apache-storm-1.0.2/bin/storm.py nimbus
它工作得很好。但是,如果我是一个ec2用户,并尝试以
sudo python /opt/apache-storm-1.0.2/bin/storm.py nimbus
它给出了以下错误
Traceback (most recent call last):
File "./storm.py", line 769, in <module>
main()
File "./storm.py", line 766, in main
(COMMANDS.get(COMMAND, unknown_command))(*ARGS)
File "./storm.py", line 529, in nimbus
jvmopts = parse_args(confvalue("nimbus.childopts", cppaths)) + [
File "./storm.py", line 145, in confvalue
p = sub.Popen(command, stdout=sub.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
是否仍然可以在不切换为root用户的情况下运行命令
暂无答案!
目前还没有任何答案,快来回答吧!