我想用 Nutch 2.1 新的爬虫脚本 bin/crawl 从我的 seed.txt 爬取很多网站。
问题是每次我运行我的脚本时,它都不会使用消息“Skipoing [here is specific url] different batch id (null)”获取或解析任何内容(没有 url)
以下是日志的一些输出:
Start old crawling linked TV:
InjectorJob: starting
InjectorJob: urlDir: /opt/ir/nutch/urls
InjectorJob: finished
看起来注入url是可以的
Sun Jun 30 19:45:10 CEST 2013 : Iteration 1 of 2
Generating batchId
Generating a new fetchlist
GeneratorJob: Selecting best-scoring urls due for fetch.
GeneratorJob: starting
GeneratorJob: filtering: false
GeneratorJob: topN: 50000
GeneratorJob: done
GeneratorJob: generated batch id: 1372614310-1071860715
Fetching :
FetcherJob: starting
FetcherJob: batchId: 1372614310-24672
Fetcher: Your 'http.agent.name' value should be listed first in 'http.robots.agents' property.
FetcherJob: threads: 50
FetcherJob: parsing: false
FetcherJob: resuming: false
FetcherJob : timelimit set for : 1372614928303
Using queue mode : byHost
Fetcher: threads: 50
QueueFeeder finished: total 0 records. Hit by time limit :0
-finishing thread FetcherThread0, activeThreads=0
-finishing thread FetcherThread1, activeThreads=0
-finishing thread FetcherThread2, activeThreads=0
-finishing thread FetcherThread3, activeThreads=0
....这里是 FetcherThread48 的迭代,它继续
Fetcher: throughput threshold: -1
-finishing thread FetcherThread49, activeThreads=0
Fetcher: throughput threshold sequence: 5
0/0 spinwaiting/active, 0 pages, 0 errors, 0.0 0.0 pages/s, 0 0 kb/s, 0 URLs in 0 queues
-activeThreads=0
FetcherJob: done
Parsing :
ParserJob: starting
ParserJob: resuming: false
ParserJob: forced reparse: false
ParserJob: batchId: 1372614310-24672
Skipping http://www.brugge.be/internet/en/musea/bruggemuseum/stadhuis/index.htm; different batch id (null)
Skipping http://www.galloromeinsmuseum.be/; different batch id (null)
Skipping http://www.museumdrguislain.be/; different batch id (null)
Skipping http://www.muzee.be/; different batch id (null)
Skipping http://musea.sint-niklaas.be/; different batch id (null)
... ...并从我的种子中跳过更多网址 ... ...
ParserJob: success
CrawlDB update
DbUpdaterJob: starting
Limit reached, skipping further inlinks for de.ard.www:http/
Limit reached, skipping further inlinks for de.rbb-online.mediathek:http/
Limit reached, skipping further inlinks for de.rbb-online.www:http/
DbUpdaterJob: done
请问您知道问题出在哪里吗?我完全厌倦了这个工具的配置,并试图很好地使用它......