lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teruhiko Kurosaka <>
Subject index demo throws LockObtainFailedException
Date Fri, 29 Jan 2010 01:15:26 GMT
We have many Linux machines of different brands, sharing the same NFS filesystem
for home.  The Lucene file indexing demo program is failing with LockObainFailedException

only on one particular Linux machine (Fedora Core 4, x86).  I am including
the console output at the bottom of this message.

I tried Lucene 2.9.0, 2.9.1 and 3.0.0, and the result is identical.

After searching the Internet, I saw some postings suggesting that this happens
when the disk space is low. But there seem to be more than enough for this
small demo.  I didn't understand suggestions about lockd.  I'd appreciate
for any advices on how to find the cause of this Exception. 

Thank you in advance.

T. "Kuro" Kurosaka

-bash-3.00$ cd lucene-3.0.0/
-bash-3.00$ ant demo-index-text
Buildfile: build.xml


    [mkdir] Created dir: /basis/users/kuro/opt/lucene-3.0.0/build/classes/demo
    [javac] Compiling 17 source files to /basis/users/kuro/opt/lucene-3.0.0/build/classes/demo

      [jar] Building jar: /basis/users/kuro/opt/lucene-3.0.0/lucene-demos-3.0.0.jar

     [echo] ----- (1) Prepare dir -----
     [echo] cd /basis/users/kuro/opt/lucene-3.0.0
     [echo] rmdir demo-text-dir
     [echo] mkdir demo-text-dir
    [mkdir] Created dir: /basis/users/kuro/opt/lucene-3.0.0/demo-text-dir
     [echo] cd demo-text-dir
     [echo] ----- (2) Index the files located under /basis/users/kuro/opt/lucene-3.0.0/src
     [echo] java -classpath "../lucene-core-3.0.0.jar;../lucene-demos-3.0.0.jar" org.apache.lucene.demo.IndexFiles
     [java]  caught a class
     [java]  with message: Lock obtain timed out: NativeFSLock@/basis/users/kuro/opt/lucene-3.0.0/demo-text-dir/index/write.lock: Input/output error

Total time: 6 seconds
-bash-3.00$ df -k . /tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
                     3119362560 2790661520 328701040  90% /basis/users
/dev/sda2              9718360   7700764   1515968  84% /

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message