hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Exception java.lang.ArithmeticException
Date Tue, 23 Jan 2007 19:08:17 GMT
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

Mime
View raw message