[英]exec-checked-script not starting storm
我正在使用PalletOps和VmFest ,我想在板條箱storm_codeship.clj
使用以下exec-checked-script
開始storm
,
36 (defn install [settings]
54 (exec-checked-script "start dev-zookeeper"
~ 55 ("nohup ~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))
56 (exec-checked-script "start storm-nimbus"
~ 57 ("nohup ~/bin/storm/bin/storm nimbus 1> nuibusout.log 2>nimbuserror.log &"))
58 (exec-checked-script "start storm-supervisor"
~ 59 ("nohup ~/bin/storm/bin/storm supervisor 1> superout.log 2>supererror.log &"))
60 (exec-checked-script "start storm-drpc"
~ 61 ("nohup ~/bin/storm/bin/storm drpc 1> drpcout.log 2>drpcerror.log &")))
還嘗試了不帶nohup
以下腳本,
36 (defn install [settings]
54 (exec-checked-script "start dev-zookeeper"
~ 55 ("~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))
56 (exec-checked-script "start storm-nimbus"
~ 57 ("~/bin/storm/bin/storm nimbus 1> nuibusout.log 2>nimbuserror.log &"))
58 (exec-checked-script "start storm-supervisor"
~ 59 ("~/bin/storm/bin/storm supervisor 1> superout.log 2>supererror.log &"))
60 (exec-checked-script "start storm-drpc"
~ 61 ("~/bin/storm/bin/storm drpc 1> drpcout.log 2>drpcerror.log &")))
在虛擬機中看不到任何影響,沒有任何日志文件的味道。
當我進入虛擬機並手動執行相同的命令集時,我發現它們可以處理生成的日志文件。
VM的權限如下所示,
root@ubuntu1204:/home/vmfest# ls -l ~/bin/storm/bin/
total 36
-rwxr-xr-x 1 502 staff 432 Jun 26 06:33 build_modules.sh
-rwxr-xr-x 1 502 staff 1005 Jun 26 06:33 build_release.sh
-rwxr-xr-x 1 502 staff 692 Jun 26 06:33 install_zmq.sh
-rwxr-xr-x 1 502 staff 76 Jun 26 06:33 javadoc.sh
-rwxr-xr-x 1 502 staff 15494 Jun 26 06:33 storm
-rwxr-xr-x 1 502 staff 543 Jun 26 06:33 to_maven.sh
我認為這不是許可問題, 我可能會丟失什么?
我希望發生的事情是在子進程自行分離之前退出由exec-checked-script
啟動的shell。
避免這種情況的一種方法是在Shell中打開作業控制
(exec-checked-script "start dev-zookeeper" ("set" "-m") ("~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.