maureen tanuwidjaja wrote:
I am indexing thousands of XML document,then it stops after indexing for
about 7 hrs
...
Indexing C:\sweetpea\wikipedia_xmlfiles\part-0\37027.xml
java.io.IOException: Lock obtain timed out: [EMAIL
PROTECTED]:\sweetpea\dual_index\DI\write.lock
java.lang.NullPointerException
Can anyone suggest how to overcome this lock time out error?
Which version of Lucene are you using?
(Looks like it may be a recent trunk nightly build since the
write.lock is stored in the index directory?).
This often happens if the JVM exited un-gracefully previously and left
the "write.lock" in the filesystem. If that's what's hitting you then
you can just remove that file and restart your indexing process. You
also might want to try switching to the NativeFSLockFactory (if you
are using trunk) locking implementation. Because it uses native (OS
level) locking, the locks are always freed by the OS when the JVM
exits.
Also make sure you're not accidentally trying to create two writers
in the same index. There can be only one.
If that's not what's happening here, can you provide more details
about how you are using Lucene? Is there only one IndexWriter, that you
periodically close / reopen? The IndexWriter only acquires this lock
when it's first instantiated.
Also: where is the java.lang.NullPointerException coming from? Can
you provide a traceback?
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]