[ 
https://issues.apache.org/jira/browse/NUTCH-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882543#action_12882543
 ] 

Alex McLintock commented on NUTCH-628:
--------------------------------------

As part of this fix can someone check that the documentation is up to date too.

I've added a page to our wiki based upon the example above (and yes - it seems 
to work with a very recent 1.1RC)

http://wiki.apache.org/nutch/DomainStatistics

I'm not happy I understand the parameters though eg

nu...@reynolds:/nutch/search$ bin/nutch 
org.apache.nutch.util.domain.DomainStatistics crawl/crawldb ds-host host 2
Exception in thread "main" java.io.FileNotFoundException: File does not exist: 
hdfs://rio46:9000/user/nutch/crawl/crawldb/current/data
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:457)
        at 
org.apache.hadoop.mapred.SequenceFileInputFormat.listStatus(SequenceFileInputFormat.java:51)
        at 
org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:201)
        at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:810)
        at 
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:781)
        at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730)
        at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1249)
        at 
org.apache.nutch.util.domain.DomainStatistics.run(DomainStatistics.java:113)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at 
org.apache.nutch.util.domain.DomainStatistics.main(DomainStatistics.java:204)
nu...@reynolds:/nutch/search$ 


But this worked.

nu...@reynolds:/nutch/search$ bin/nutch 
org.apache.nutch.util.domain.DomainStatistics 
hdfs://rio46:9000/user/nutch/crawl/crawldb/current/ ds-host host 2


> Host database to keep track of host-level information
> -----------------------------------------------------
>
>                 Key: NUTCH-628
>                 URL: https://issues.apache.org/jira/browse/NUTCH-628
>             Project: Nutch
>          Issue Type: New Feature
>          Components: fetcher, generator
>            Reporter: Otis Gospodnetic
>         Attachments: domain_statistics_v2.patch, 
> NUTCH-628-DomainStatistics.patch, NUTCH-628-HostDb.patch
>
>
> Nutch would benefit from having a DB with per-host/domain/TLD information.  
> For instance, Nutch could detect hosts that are timing out, store information 
> about that in this DB.  Segment/fetchlist Generator could then skip such 
> hosts, so they don't slow down the fetch job.  Another good use for such a DB 
> is keeping track of various host scores, e.g. spam score.
> From the recent thread on nutch-u...@lucene:
> Otis asked:
> > While we are at it, how would one go about implementing this DB, as far as 
> > its structures go?
> Andrzej said:
> The easiest I can imagine is to use something like <Text, MapWritable>.
> This way you could store arbitrary information under arbitrary keys.
> I.e. a single database then could keep track of aggregate statistics at
> different levels, e.g. TLD, domain, host, ip range, etc. The basic set
> of statistics could consist of a few predefined gauges, totals and averages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to