On the worker machine, do you have Python installed? You can check by running "python -V". You need to ensure you're using the same $PATH as whatever environment is running your Storm supervisor/worker. From the exception stack trace, it looks like your ShellBolt does not see a python interpreter on the $PATH, therefore it can't run your Python bolt.
At least, that's how I read "Caused by: java.io.IOException: Cannot run program "python" (in directory "/tmp/5f3c8318-14da-4999-a974-584a9d200fdb/supervisor/stormdist/mongo_20140528_02 -1-1401786854/resources"): error=2, No such file or directory". On Wed, Jun 4, 2014 at 7:33 PM, Hamza Asad <hamza.asa...@gmail.com> wrote: > Help required plz.. I'm facing this issue while using pytjon bolt.. > Haven't resolved it yet.. Anyone having solution > > *** This message has been sent using QMobile A500 *** > > > Hamza Asad <hamza.asa...@gmail.com> wrote: > > I have checked that resources folder is NOT placed in location > > */tmp/6a090639-b975-42b8-8bc1-8de6093ad3e1/supervisor/stormdist/mongo_20140528_02-1-1401881161/resources* > There are only two files i.e stormcode.ser stormconf.ser but NO resources > folder. Why? How can i resolve this issue. Im using *storm* > *0.9.1-incubating* and compiling code using netbeans. > > > On Tue, Jun 3, 2014 at 2:31 PM, Hamza Asad <hamza.asa...@gmail.com> wrote: > >> Hi, >> I'm using python bolt which is in the resource directory but storm giving >> me error >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *7226 [Thread-19-exclaim1] INFO backtype.storm.daemon.executor - >> Preparing bolt exclaim1:(3) 7231 [Thread-10] INFO >> backtype.storm.daemon.executor - Loading executor exclaim1:[4 4]7232 >> [Thread-19-exclaim1] ERROR backtype.storm.util - Async loop >> died!java.lang.RuntimeException: Error when launching multilang subprocess >> at backtype.storm.task.ShellBolt.prepare(ShellBolt.java:105) >> ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] at >> backtype.storm.daemon.executor$eval5170$fn__5171$fn__5183.invoke(executor.clj:689) >> ~[na:na] at backtype.storm.util$async_loop$fn__390.invoke(util.clj:431) >> ~[na:na] at clojure.lang.AFn.run(AFn.java:24) [clojure-1.4.0.jar:na] >> at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]Caused by: >> java.io.IOException: Cannot run program "python" (in directory >> "/tmp/5f3c8318-14da-4999-a974-584a9d200fdb/supervisor/stormdist/mongo_20140528_02-1-1401786854/resources"): >> error=2, No such file or directory at >> java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) ~[na:1.7.0_55] >> at backtype.storm.utils.ShellProcess.launch(ShellProcess.java:50) >> ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] at >> backtype.storm.task.ShellBolt.prepare(ShellBolt.java:102) >> ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] ... 4 common frames >> omittedCaused by: java.io.IOException: error=2, No such file or >> directory at java.lang.UNIXProcess.forkAndExec(Native Method) >> ~[na:1.7.0_55] at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) >> ~[na:1.7.0_55] at java.lang.ProcessImpl.start(ProcessImpl.java:130) >> ~[na:1.7.0_55] at >> java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ~[na:1.7.0_55] >> ... 6 common frames omitted7233 [Thread-10] INFO >> backtype.storm.daemon.task - Emitting: exclaim1 __system ["startup"] 7233 >> [Thread-10] INFO backtype.storm.daemon.executor - Loaded executor tasks >> exclaim1:[4 4]7233 [Thread-19-exclaim1] ERROR >> backtype.storm.daemon.executor - java.lang.RuntimeException: Error when >> launching multilang subprocess at >> backtype.storm.task.ShellBolt.prepare(ShellBolt.java:105) >> ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] at >> backtype.storm.daemon.executor$eval5170$fn__5171$fn__5183.invoke(executor.clj:689) >> ~[na:na] at backtype.storm.util$async_loop$fn__390.invoke(util.clj:431) >> ~[na:na] at clojure.lang.AFn.run(AFn.java:24) [clojure-1.4.0.jar:na] >> at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]Caused by: >> java.io.IOException: Cannot run program "python" (in directory >> "/tmp/5f3c8318-14da-4999-a974-584a9d200fdb/supervisor/stormdist/mongo_20140528_02-1-1401786854/resources"): >> error=2, No such file or directory at >> java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) ~[na:1.7.0_55] >> at backtype.storm.utils.ShellProcess.launch(ShellProcess.java:50) >> ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] at >> backtype.storm.task.ShellBolt.prepare(ShellBolt.java:102) >> ~[storm-core-0.9.1-incubating.jar:0.9.1-incubating] ... 4 common frames >> omittedCaused by: java.io.IOException: error=2, No such file or >> directory at java.lang.UNIXProcess.forkAndExec(Native Method) >> ~[na:1.7.0_55] at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) >> ~[na:1.7.0_55] at java.lang.ProcessImpl.start(ProcessImpl.java:130) >> ~[na:1.7.0_55] at >> java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ~[na:1.7.0_55] * >> >