crawling with Nutch 2.3, Cassandra 2.0, and solr 4.10.3 returns 0 results

守給你的承諾、 提交于 2020-01-06 23:43:25

问题


I mainly followed the guide on this page. I installed Nutch 2.3, Cassandra 2.0, and solr 4.10.3. Set up went well. But when I executed the following command. No urls were fetched.

./bin/crawl urls/seed.txt TestCrawl http://localhost:8983/solr/ 2

Below are my settings.

nutch-site.xml

http://ideone.com/H8MPcl

regex-urlfilter.txt

+^http://([a-z0-9]*\.)*nutch.apache.org/

hadoop.log

http://ideone.com/LnpAw4

I don't see any errors in the log file. I am really lost. Any help would be appreciated. Thanks!


回答1:


You will have to add the regex for your website that you want to crawl in regex-urlfilter.txt to pick the link that you have added in nutch-site.xml.

Right now it will only crawl "nutch.apache.org"

Try adding below line:

+^http://([a-z0-9]*\.)*ideone.com/

Try to set nutch logs in debug level and get the logs while executing the crawl command.

It will clearly shows why you are unable to crawl and index the site.

Regards,

Jayesh Bhoyar

http://technical-fundas.blogspot.com/p/technical-profile.html




回答2:


I got a similar problem recently. I think you can try the following steps to find out the problem.

1 Do some tests to make sure the DB works well.

2 Instead of running the crawl in batch, you can call nutch step by step and watch the log change as well as the change of DB content, in particular, the new urls.

3 Turn off solr and focus on nutch and the DB.



来源:https://stackoverflow.com/questions/28446576/crawling-with-nutch-2-3-cassandra-2-0-and-solr-4-10-3-returns-0-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!