尝试通过 Supervisord 运行 Zookeeper 时出现错误 127?

尝试通过 Supervisord 运行 Zookeeper 时出现错误 127?

当我尝试通过supervisord运行Zookeeper时,我得到了(exit status 127; not expected)错误,并且我得到的错误没有帮助。以普通用户身份运行它可以正常工作:

[ec2-user@ip-10-1-90-214 zookeeper-3.4.6]$ sudo bin/zkServer.sh start
JMX enabled by default
Using config: /home/ec2-user/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED

但是当通过 Supervisord 运行它时(使用 -n,所以我可以看到输出):

[ec2-user@ip-10-1-90-214 zookeeper-3.4.6]$ supervisord -n
2015-04-20 21:51:51,834 INFO RPC interface 'supervisor' initialized
2015-04-20 21:51:51,834 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-04-20 21:51:51,834 INFO supervisord started with pid 24004
2015-04-20 21:51:52,836 INFO spawned: 'zookeeper' with pid 24007
2015-04-20 21:51:52,841 INFO exited: zookeeper (exit status 127; not expected)

相关部分/etc/supervisord.conf

[program:zookeeper]
command=/home/ec2-user/zookeeper-3.4.6/bin/zkServer.sh start -c /etc/supervisord.conf
autorestart=true
user=ec2-user

我尝试修改各种设置,例如退出代码等。有什么想法吗?

答案1

命令行似乎不正确:

/home/ec2-user/zookeeper-3.4.6/bin/zkServer.cmd start -c /etc/supervisord.conf

zkServer.cmd 是 Windows 的命令,并且配置文件也不是正确的文件。

相关内容