Hi,
There's a bug in LinkDb.install(). It tries to rename an old linkdb from
linkdb/current to linkdb/old, and linkdb/current doesn't exist.
Just replace:
fs.rename(current, old);
with:
if (fs.exists(current)) {
fs.rename(current, old);
}
and it will work again :)
- Espen
Renaud Richardet wrote:
>
> Hello,
>
> I am using Nutch trunk, and get this error since I updated my local
> version. I think this happened since I updated to hadoop-0.9
>
> LinkDb: starting
> LinkDb: linkdb: crawl/linkdb
> LinkDb: URL normalize: true
> LinkDb: URL filter: true
> LinkDb: adding segment: crawl/segments/20061212191509
> LinkDb: adding segment: crawl/segments/20061212191517
> Exception in thread "main" java.io.IOException: crawl/linkdb/current: No
> such file or directory
> at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:80)
> at
> org.apache.hadoop.fs.LocalFileSystem.renameRaw(LocalFileSystem.java:212)
> at org.apache.hadoop.fs.FileSystem.rename(FileSystem.java:373)
> at org.apache.nutch.crawl.LinkDb.install(LinkDb.java:319)
> at org.apache.nutch.crawl.LinkDb.invert(LinkDb.java:247)
> at org.apache.nutch.crawl.LinkDb.invert(LinkDb.java:215)
> at org.apache.nutch.crawl.Crawl.main(Crawl.java:127)
>
> Can anyone reproduce?
>
> Thanks,
> Renaud
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general