PS.
In the following code:
if (readers == null || readers.length == 0 || !readers[0].next(new
FloatWritable())) {
LOG.warn("Generator: 0 records selected for fetching, exiting ...");
LockUtil.removeLockFile(fs, lock);
fs.delete(tempDir);
return null;
}
>>>> There is no need for the if here
if (readers!=null)
for (int i = 0; i < readers.length; i++) readers[i].close();
-----Original Message-----
From: Gal Nitzan [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 1:56 PM
To: [email protected]
Subject: Generator.java bug?
Hi,
After many failures of generate "Generator: 0 records selected for fetching,
exiting ..." I made a post about it a few days back.
I narrowed down to the following function:
public Path generate(Path dbDir, Path segments, int numLists, long topN,
long curTime, boolean filter, boolean force)
in the following if: if (readers == null || readers.length == 0 ||
!readers[0].next(new FloatWritable()))
It turns out that the: "!readers[0].next(new FloatWritable())" is the
culprit.
Gal
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers