Armel T. Nene wrote:
My problem is when I run my program I get the following errors:
Exception in thread "main" java.lang.ArithmeticException: / by zero

        at
org.apache.hadoop.mapred.lib.HashPartitioner.getPartition(HashPartitioner.ja
va:33)

        at
org.apache.hadoop.mapred.MapFileOutputFormat.getEntry(MapFileOutputFormat.ja
va:88)

        at org.apache.nutch.crawl.CrawlDbReader.get(CrawlDbReader.java:321)

        at

It looks like the crawl db path contains no files. Probably MapFileOutputFormat#getReaders() should throw an exception when no paths are listed (if 'names', on line 68, has length zero). That might make this a little easier to debug.

So please check the path you're passing for the crawl db.

Doug

Reply via email to