[
http://issues.apache.org/jira/browse/NUTCH-94?page=comments#action_12331640 ]
raghavendra prabhu commented on NUTCH-94:
-----------------------------------------
Ya Even I come across the same error
The problem seems to be in the MapFile Writer where it tries to create a newWeb
Db and the the directory already exists
I tried to remove the file but is being used by some other resource .So it is
not gettign deleted
MapFile.Writer newDb = (comparator == null) ? new MapFile.Writer(fs,
newDbFile.getPath(), keyClass, valueClass) : new MapFile.Writer(fs,
newDbFile.getPath(), comparator, valueClass);
I tried to delete the newDbFile.getPath()
File dbfileexists=new File(newDbFile.getPath());
if (dbfileexists.exists())
{
System.out.println("already exists");
if(FileUtil.fullyDelete(dbfileexists))
{
System.out.println("deleted successfully");
}
else
{
System.out.println("not deleted");
}
}
and found that it already exists and is not getting deleted when you get the
error
> MapFile.Writer throwing 'File exists error'.
> --------------------------------------------
>
> Key: NUTCH-94
> URL: http://issues.apache.org/jira/browse/NUTCH-94
> Project: Nutch
> Type: Bug
> Components: fetcher
> Versions: 0.6
> Environment: Server 2003, Resin, 1.4.2_05
> Reporter: Michael Couck
>
> Running Nutch inside a server JVM or multiple times in the same JVM,
> MapFile.Writer doesn't get collected or closed by the WebDBWriter and the
> associated files and directories are not deleted, consequently throws a File
> exists error in the constructor of MapFile.Writer.
> Seems that this portion of code is very heavily integrated into Nutch and I
> am hesitant to look for a solution personally as a retrofit will be necessary
> with every release.
> Has anyone got any ideas, had the same issue, any solutions?
> Regards
> Michael
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers