我想使用Nutch 2.1新的抓取脚本bin / crawl从我的seed.txt抓取很多网站。
问题在于,每次运行我的脚本时,它都不会获取或解析任何内容(没有网址),并显示消息“Skipoing [here is concrete url]不同的批处理ID(null)”
以下是日志中的一些输出:
Start old crawling linked TV:
InjectorJob: starting
InjectorJob: urlDir: /opt/ir/nutch/urls
InjectorJob: finished
看起来注入网址是好的
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
你知道问题出在哪里吗?我完全厌倦了这个工具的配置,并试图与它合作......
答案 0 :(得分:0)
好的,解决方法是我使用旧版本的nutch(2.1)。更新到2.2.1后,这个问题消失了。