2014-06-26 50 views
0

我使用PalletOpsVmFest,我想用下面的箱子storm_codeship.cljexec-checked-script開始stormEXEC覈對腳本無法啓動風暴

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 &"))) 

中看不到效果虛擬機沒有任何日誌文件的氣味。

當我進入虛擬機並手動執行相同的一組命令時,我發現它們與生成的日誌文件一起工作。

虛擬機上的權限如下,

[email protected]:/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 

我不認爲這是一個權限問題,什麼可能我會丟失?

回答

0

我期望發生的事情是在子進程脫離它之前退出由exec-checked-script開始的shell。爲了避免這種

一種方法是在shell時codeship.io與`localhost`提供商執行相同的代碼

(exec-checked-script "start dev-zookeeper" ("set" "-m") ("~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))

+0

神奇的事情發生,打開作業控制。順便嘗試一下。謝謝 !! – prayagupd