Cannot run program "unzip" (in directory ".")

809 views
Skip to first unread message

ashu

unread,
Apr 9, 2012, 4:47:29 PM4/9/12
to storm-user
Hello,

I am running a cluster with one Nimbus and two supervisors. I got the
following error:

2012-04-10 03:50:03 supervisor [INFO] Starting supervisor with id
dfde25ff-f07d-4d54-8fb4-98632ee7db9f at host t01a08082.ao.com
2012-04-10 04:40:37 supervisor [INFO] Downloading code for storm id
ctest-1-1334004037 from /apang/disk1/stormtmp/nimbus/stormdist/
cntest-1-1334004037
2012-04-10 04:40:38 event [ERROR] Error when processing event
java.io.IOException: Cannot run program "unzip" (in directory "."):
java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:
58)
at
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:
254)
at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:
319)
at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at backtype.storm.util$exec_command_BANG_.invoke(util.clj:220)
at backtype.storm.util$extract_dir_from_jar.invoke(util.clj:
225)
at backtype.storm.daemon.supervisor
$fn__4246.invoke(supervisor.clj:361)
at clojure.lang.MultiFn.invoke(MultiFn.java:171)
at backtype.storm.daemon.supervisor
$fn__4029$exec_fn__1021__auto____4030$this__4132.invoke(supervisor.clj:
264)
at backtype.storm.event$event_manager
$fn__2363.invoke(event.clj:24)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: java.io.IOException: error=2, No such
file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 14 more
2012-04-10 04:40:38 util [INFO] Halting process: ("Error when
processing an event")

Nathan Marz

unread,
Apr 9, 2012, 4:49:24 PM4/9/12
to storm...@googlegroups.com
As explained on https://github.com/nathanmarz/storm/wiki/Setting-up-a-Storm-cluster, you need to have the unzip program installed and available on the cluster machines.
--
Twitter: @nathanmarz
http://nathanmarz.com

ashu

unread,
Apr 9, 2012, 5:38:18 PM4/9/12
to storm-user
I have unzip installed. An env issue. Now I got the following errors.
I am calling Storm using absolute path "/apang/disk1/storm-0.7.0/bin/
storm supervisor". My jar file contain slf4j-log4j12-1.5.8.jar and
slf4j-api-1.5.8.jar from storm-starter. Should I delete the two jar
from storm-starter?

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apang/disk1/storm-0.7.0/lib/slf4j-
log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apang/disk1/storm-0.7.0/lib/slf4j-
log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
log4j.configuration=storm.log.properties"
File "/apang/disk1/storm-0.7.0/bin/storm", line 52, in confvalue
p = sub.Popen(command, stdout=sub.PIPE)
File "/usr/lib64/python2.4/subprocess.py", line 550, in __init__
errread, errwrite)
File "/usr/lib64/python2.4/subprocess.py", line 993, in
_execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
3b) [0x6e95f5]


On Apr 9, 1:49 pm, Nathan Marz <nathan.m...@gmail.com> wrote:
> As explained onhttps://github.com/nathanmarz/storm/wiki/Setting-up-a-Storm-cluster, you
> need to have the unzip program installed and available on the cluster
> machines.
>
>
>
>
>
> On Mon, Apr 9, 2012 at 4:47 PM, ashu <ash...@gmail.com> wrote:
> > Hello,
>
> > I am running a cluster with one Nimbus and two supervisors. I got the
> > following error:
>
> > 2012-04-10 03:50:03 supervisor [INFO] Starting supervisor with id
> > dfde25ff-f07d-4d54-8fb4-98632ee7db9f at host t01a08082.ao.com
> > 2012-04-10 04:40:37 supervisor [INFO] Downloading code for storm id
> > ctest-1-1334004037 from /apang/disk1/stormtmp/nimbus/stormdist/
> > cntest-1-1334004037
> > 2012-04-10 04:40:38 event [ERROR] Error when processing event
> > java.io.IOException: Cannot run program "unzip" (in directory "."):
> > java.io.IOException: error=2, No such file or directory
> >        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
> >        at java.lang.Runtime.exec(Runtime.java:593)
> >        at
>
> > org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLa­uncher.java:
> > 58)
> >        at
> > org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:
> > 254)
> >        at
>
> > org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.jav­a:
> Twitter: @nathanmarzhttp://nathanmarz.com- Hide quoted text -
>
> - Show quoted text -

Nathan Marz

unread,
Apr 11, 2012, 6:01:44 PM4/11/12
to storm...@googlegroups.com
What happens when you run "bin/storm supervisor" from within the /apang/disk1/storm-0.7.0 directory? Are you launching this from the command line or via another mechanism?
Reply all
Reply to author
Forward
0 new messages