Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The "Incremental Crawling Scripts Test" page has been changed by Gabriele 
Kahlout.
http://wiki.apache.org/nutch/Incremental%20Crawling%20Scripts%20Test?action=diff&rev1=3&rev2=4

--------------------------------------------------

- 1. Abridged script using Solr
+ == 1. ==
  {{{
  ./whole-web-crawling-incremental seeds 10 1
  rm: seeds/it_seeds/urls: No such file or directory
@@ -628, +628 @@

  
  }}}
  
- 2. Unabridged script with explanations and using nutch index:
+ == 2. ==
  
  {{{
  $ ./whole-web-crawling-incremental urls-input/MR6 5 2
@@ -797, +797 @@

  CrawlDb statistics: done
  }}}
  
+ == 3. ==
+ {{{
+ $ ./whole-web-crawling-incremental urls-input/MR6
+ bin/hadoop dfs -rmr crawl
+ Deleted file:/Users/simpatico/nutch-1.2/crawl
+ 
+ curl --fail http://localhost:8080/solr/update?commit=true -d 
'<delete><query>*:*</query></delete>'
+ <?xml version="1.0" encoding="UTF-8"?>
+ <response>
+ <lst name="responseHeader"><int name="status">0</int><int 
name="QTime">8</int></lst>
+ </response>
+ 
+ rmr: cannot remove urls-input/MR6/it_seeds: No such file or directory.
+ bin/hadoop dfs -get urls-input/MR6/2urls urls-input/MR6/urls-local-only
+ 
+ 2 urls to crawl
+ rm: cannot remove urls-input/MR6/it_seeds/urls: No such file or directory.
+ 
+ bin/nutch inject crawl/crawldb/0/0 urls-input/MR6/it_seeds
+ Injector: starting at 2011-03-28 23:37:13
+ Injector: crawlDb: crawl/crawldb/0/0
+ Injector: urlDir: urls-input/MR6/it_seeds
+ Injector: Converting injected urls to crawl db entries.
+ Injector: Merging injected urls into crawl db.
+ Injector: finished at 2011-03-28 23:37:20, elapsed: 00:00:07
+ 
+ generate-fetch-updatedb-invertlinks-index-merge iteration 0:
+ 
+ bin/nutch generate crawl/crawldb/0/0 crawl/segments -topN 10
+ Generator: starting at 2011-03-28 23:37:22 Generator: Selecting best-scoring 
urls due for fetch. Generator: filtering: true Generator: normalizing: true 
Generator: topN: 10 Generator: jobtracker is 'local', generating exactly one 
partition. Generator: Partitioning selected urls for politeness. Generator: 
segment: crawl/segments/20110328233727 Generator: finished at 2011-03-28 
23:37:30, elapsed: 00:00:07
+ 
+ bin/nutch fetch crawl/segments/20110328233727
+ Fetcher: starting at 2011-03-28 23:37:31
+ Fetcher: segment: crawl/segments/20110328233727
+ Fetcher: threads: 10
+ QueueFeeder finished: total 2 records + hit by time limit :0
+ fetching http://localhost:8080/qui/2.html
+ -activeThreads=10, spinWaiting=10, fetchQueues.totalSize=1
+ * queue: http://localhost
+   maxThreads    = 1
+   inProgress    = 0
+   crawlDelay    = 5000
+   minCrawlDelay = 0
+   nextFetchTime = 1301348260190
+   now           = 1301348255771
+   0. http://localhost:8080/qui/1.html
+ -activeThreads=10, spinWaiting=10, fetchQueues.totalSize=1
+ * queue: http://localhost
+   maxThreads    = 1
+   inProgress    = 0
+   crawlDelay    = 5000
+   minCrawlDelay = 0
+   nextFetchTime = 1301348260190
+   now           = 1301348256777
+   0. http://localhost:8080/qui/1.html
+ -activeThreads=10, spinWaiting=10, fetchQueues.totalSize=1
+ * queue: http://localhost
+   maxThreads    = 1
+   inProgress    = 0
+   crawlDelay    = 5000
+   minCrawlDelay = 0
+   nextFetchTime = 1301348260190
+   now           = 1301348257779
+   0. http://localhost:8080/qui/1.html
+ -activeThreads=10, spinWaiting=10, fetchQueues.totalSize=1
+ * queue: http://localhost
+   maxThreads    = 1
+   inProgress    = 0
+   crawlDelay    = 5000
+   minCrawlDelay = 0
+   nextFetchTime = 1301348260190
+   now           = 1301348258780
+   0. http://localhost:8080/qui/1.html
+ -activeThreads=10, spinWaiting=10, fetchQueues.totalSize=1
+ * queue: http://localhost
+   maxThreads    = 1
+   inProgress    = 0
+   crawlDelay    = 5000
+   minCrawlDelay = 0
+   nextFetchTime = 1301348260190
+   now           = 1301348259783
+   0. http://localhost:8080/qui/1.html
+ fetching http://localhost:8080/qui/1.html
+ -finishing thread FetcherThread, activeThreads=9
+ -finishing thread FetcherThread, activeThreads=8
+ -finishing thread FetcherThread, activeThreads=7
+ -finishing thread FetcherThread, activeThreads=6
+ -finishing thread FetcherThread, activeThreads=5
+ -finishing thread FetcherThread, activeThreads=3
+ -finishing thread FetcherThread, activeThreads=3
+ -finishing thread FetcherThread, activeThreads=2
+ -finishing thread FetcherThread, activeThreads=1
+ -finishing thread FetcherThread, activeThreads=0
+ -activeThreads=0, spinWaiting=0, fetchQueues.totalSize=0
+ -activeThreads=0
+ Fetcher: finished at 2011-03-28 23:37:41, elapsed: 00:00:10
+ 
+ bin/nutch updatedb crawl/crawldb/0/0 crawl/segments/20110328233727
+ CrawlDb update: starting at 2011-03-28 23:37:43
+ CrawlDb update: db: crawl/crawldb/0/0
+ CrawlDb update: segments: [crawl/segments/20110328233727]
+ CrawlDb update: additions allowed: true
+ CrawlDb update: URL normalizing: false
+ CrawlDb update: URL filtering: false
+ CrawlDb update: Merging segment data into db.
+ CrawlDb update: finished at 2011-03-28 23:37:47, elapsed: 00:00:04
+ 
+ bin/nutch invertlinks crawl/linkdb -dir crawl/segments
+ LinkDb: starting at 2011-03-28 23:37:49
+ LinkDb: linkdb: crawl/linkdb
+ LinkDb: URL normalize: true
+ LinkDb: URL filter: true
+ LinkDb: adding segment: 
file:/Users/simpatico/nutch-1.2/crawl/segments/20110328233727
+ LinkDb: finished at 2011-03-28 23:37:52, elapsed: 00:00:03
+ 
+ bin/nutch solrindex http://localhost:8080/solr crawl/crawldb/0/0 crawl/linkdb 
crawl/segments/20110328233727
+ SolrIndexer: starting at 2011-03-28 23:37:53
+ SolrIndexer: finished at 2011-03-28 23:38:00, elapsed: 00:00:06
+ 
+ 
+ bin/nutch readdb crawl/crawldb/0/0 -stats
+ CrawlDb statistics start: crawl/crawldb/0/0
+ Statistics for CrawlDb: crawl/crawldb/0/0
+ TOTAL urls:   2
+ retry 0:      2
+ min score:    1.0
+ avg score:    1.0
+ max score:    1.0
+ status 2 (db_fetched):        2
+ CrawlDb statistics: done
+ 
+ Deleted file:/Users/simpatico/nutch-1.2/urls-input/MR6/it_seeds
+ 
+ }}}
+ 

Reply via email to