使用新的脚本bin/crawl-跳过url不同的批处理id(null)



我想用Nutch 2.1新的爬网脚本bin/cracle从我的seed.txt中爬网很多网站。

问题是,每次我运行脚本时,它都不会获取或解析任何内容(没有url),并显示消息"Skipping[here is concrete url]different batch id(null)"

以下是日志的一些输出:

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)

。。。并从我的种子中跳过更多url。。。…

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

你知道问题在哪里吗?我已经完全厌倦了这个工具的配置,并试图很好地使用它…

好的,解决方案是我使用了旧版本的nutch(2.1)。更新到2.2.1后,这个问题消失了。