Mike,

After running
./bin/nutch inject blah blah    --    in fact WebDBInjector.java
both ./db/webdb and ./db/webdb.old are created.
The existance of ./db/webdb.old will further fail other commands
with complaints like

Exception in thread "main" java.io.IOException: Impossible condition: directories 
./db/webdb.old and ./db/webdb cannot exist simultaneously
        at net.nutch.db.WebDBWriter.<init>(WebDBWriter.java:1470)
        at net.nutch.db.WebDBWriter.<init>(WebDBWriter.java:1443)
        at net.nutch.tools.FetchListTool.emitFetchList(FetchListTool.java:531)
        at net.nutch.tools.FetchListTool.emitFetchList(FetchListTool.java:304)
        at net.nutch.tools.FetchListTool.main(FetchListTool.java:662)


The same symptom also appears in the failed test run of
./src/test/net/nutch/db/DBTester.java:

Testcase: testWebDB took 3.583 sec
        Caused an ERROR
Impossible condition: directories ./build/test/data/testDb/webdb_test/webdb.old 
and ./build/test/data/testDb/webdb_test/webdb cannot exist simultaneously
java.io.IOException: Impossible condition: directories ./build/test/data/testDb/
webdb_test/webdb.old and ./build/test/data/testDb/webdb_test/webdb cannot exist 
simultaneously
        at net.nutch.db.WebDBWriter.<init>(WebDBWriter.java:1470)
        at net.nutch.db.WebDBWriter.<init>(WebDBWriter.java:1443)
        at net.nutch.db.DBTester.makeEdits(DBTester.java:228)
        at net.nutch.db.DBTester.runTest(DBTester.java:123)
        at net.nutch.db.TestWebDB.testWebDB(TestWebDB.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)

Shouldn't webdb.old be removed? Looks like a delete() is needed for nfs
at some place.

Could you please check?

Thanks,

John

__________________________________________
http://www.neasys.com - A Good Place to Be
Come to visit us today!


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to