Hi! Recently Storm packages multilang files into Maven artifacts, and Supervisor extracts fat jar's resources to resource directory.
Here's supervisor's log. 4584 [Thread-3] INFO backtype.storm.daemon.supervisor - Extracting resources from jar at ./target/flux-examples-0.11.0-SNAPSHOT.jar to /var/folders/3x/tz52s3jn2c71ts70k46_jdm40000gn/T//e2ff0cc0-6e81-43c6-8661-94f1ae5c3d39/supervisor/stormdist/shell-topology-1-1431350566/resources But AFAIK mvn exec:java doesn't do this for us, so for now we have to run multilang toplogy with standard way. If I'm right, it may be better to remove topologies which use multilang from storm-starter's README.markdown, "Running topologies with Maven". Hope this helps. Thanks. Jungtaek Lim (HeartSaVioR) 2015-05-11 15:23 GMT+09:00 Richard Huber <[email protected]>: > Hey all - > > Worked through all the online tutorial, etc, setup exactly as per > instructions. Everything seems to be working but the WordCountTopology > example with the python bolt. After some digging I can either copy: > > storm-multilang/python/target/classes/resources/storm.py > to > examples/storm-starter/target/classes/resources/ > > Or of course set > PYTHONPATH=(path)/storm-multilang/python/target/classes/resources > > And it appears as if it is running properly, though the subprocess > eventually dies without any output. (for more investigation on my part) > > If storm is cloned clean, and all instructions run through > WordCountToplogy fails with: > > Traceback (most recent call last): > File "splitsentence.py", line 16, in <module> > import storm > ImportError: No module named storm > > Just want to bring this to the team's attention. Was there something > missing from the build that should have copied storm.py to > target/classes/resources? I surfed the various build files and didn't see > any reference to PYTHONPATH. Or perhaps newbie user error somewhere? > > Cheers and thank you > > Rich > -- Name : 임 정택 Blog : http://www.heartsavior.net / http://dev.heartsavior.net Twitter : http://twitter.com/heartsavior LinkedIn : http://www.linkedin.com/in/heartsavior
