Troubleshooting
If the topology doesn't run correctly, review the log files created in the current directory. Errors are often caused by using a version of Storm that does not have a corresponding version of Petrel on the PyPI website (https://pypi.python.org/pypi/petrel). At the time of writing this book, two Storm versions are supported:
- 0.9.3
- 0.9.4
If you are using an unsupported version of Storm, you are likely to see an error similar to one of these:
File "/home/barry/.virtualenvs/petrel2/lib/python2.7/site-packages/petrel-0.9.3.0.3-py2.7.egg/petrel/cmdline.py", line 19, in get_storm_version return m.group(2) AttributeError: 'NoneType' object has no attribute 'group' IOError: [Errno 2] No such file or directory: '/home/barry/.virtualenvs/petrel2/lib/python2.7/site-packages/petrel-0.9.3.0.3-py2.7.egg/petrel/generated/storm-petrel-0.10.0-SNAPSHOT.jar' ...
Get Building Python Real-Time Applications with Storm now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.