Closed isspek closed 7 years ago
How was the CrawlTopology executed? Normally, the execution is done by Storm:
storm jar .../path/to/storm-crawler.jar com.digitalpebble.stormcrawler.CrawlTopology -conf ...
@sebastian-nagel I created it as Maven Project in Eclipse. I wanted to figure out how crawler works. So I executed main method by running as application in Eclipse and then I got these errors. I haven't installed Storm on my machine, because it is already in pom. Should I install it on my machine?
Add -local and conf crawler-conf.yaml
as argument to the topology class. You don't have to run it with Storm, it works with Eclipse. If local is not specified, it tries to connect to a Storm cluster and since you haven't installed one you are getting this error
The wiki contains a description how to run the topology locally.
@sebastian-nagel that wiki page needs fixing. Running with mvn-exec does not work, see #324
The README file generated by the archetype contains the correct instructions i.e run it with Storm installed (but it also works with Eclipse and is a good way of debugging)
I created new StormCrawler-based project by following steps described in I. Without modifying crawler-confer.yaml, I executed CrawlTopology.java which comes with the project and then I received error as below:
I searched Google what the problem causes, it seems related Zookeper. But I am using Tomcat server. What should I do for preventing this error?