You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Milad Fatenejad <ic...@gmail.com> on 2014/07/10 17:39:00 UTC

FileNotFoundException when using storm and tika

Hello:

I am trying to use Storm with Apache Tika and I am running into some
trouble when running the topology in local-mode. Specifically, I get this
FileNotFoundException:

7887 [Thread-5] INFO  backtype.storm.daemon.supervisor - Downloading code
for storm id LocalTopology-1-1405005513 from
/tmp/0de4961a-8694-4646-bb3c-b8e2d49da288/nimbus/stormdist/LocalTopology-1-1405005513
7906 [Thread-5] INFO  backtype.storm.daemon.supervisor - Copying resources
at
jar:file:/home/milad/.m2/repository/edu/ucar/netcdf/4.2-min/netcdf-4.2-min.jar!/resources
to
/tmp/61a2365c-f99f-49d6-9bb3-93f84e237fd2/supervisor/stormdist/LocalTopology-1-1405005513/resources
7907 [Thread-5] ERROR backtype.storm.event - Error when processing event
java.io.FileNotFoundException: Source
'file:/home/milad/.m2/repository/edu/ucar/netcdf/4.2-min/netcdf-4.2-min.jar!/resources'
does not exist
 at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1368)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1261)
~[commons-io-2.4.jar:2.4]
 at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1230)
~[commons-io-2.4.jar:2.4]
at backtype.storm.daemon.supervisor$fn__6392.invoke(supervisor.clj:535)
~[storm-core-0.9.3-incubating-SNAPSHOT.jar:0.9.3-incubating-SNAPSHOT]
 at clojure.lang.MultiFn.invoke(MultiFn.java:236) ~[clojure-1.5.1.jar:na]
at
backtype.storm.daemon.supervisor$mk_synchronize_supervisor$this__6286.invoke(supervisor.clj:327)
~[storm-core-0.9.3-incubating-SNAPSHOT.jar:0.9.3-incubating-SNAPSHOT]
 at backtype.storm.event$event_manager$fn__2391.invoke(event.clj:39)
~[storm-core-0.9.3-incubating-SNAPSHOT.jar:0.9.3-incubating-SNAPSHOT]
at clojure.lang.AFn.run(AFn.java:24) [clojure-1.5.1.jar:na]
 at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]
7920 [Thread-5] INFO  backtype.storm.util - Halting process: ("Error when
processing an event")

The file:
/home/milad/.m2/repository/edu/ucar/netcdf/4.2-min/netcdf-4.2-min.jar
definitely exists and does contain a resource directory. I don't have any
clojure experience so I am having trouble understanding what is going on so
I can fix this issue. Not being able to run in local mode is really hurting
my ability to develop the topology, does anyone have any advise on how to
fix this?

Thanks
Milad

P.S.

I tried running with storm 0.9.2 and the 0.9.3-snapshot from git.

I believe this is the same issue reported here:
https://github.com/DigitalPebble/storm-crawler/issues/1

I found this similar issue related to storm extracting resource directories
from jars, but I don't think this is the same problem
https://issues.apache.org/jira/browse/STORM-273