简体   繁体   中英

Lucene 4.0 on Linux - IndexWriter error: No locks available

When trying to index content with Lucene on linux I get the following error message:

 index/write.lock: java.io.IOException: No locks available at org.apache.lucene.store.Lock.obtain(Lock.java:84) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:636) 

My code works perfects on Windows and on Mac OS .

Any ideas?

Check locking services in file system where you are indexing

ps aux | grep lockd

for more info :

http://lucene.472066.n3.nabble.com/No-locks-available-td2272029.html https://serverfault.com/questions/61594/what-does-no-locks-available-mean

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM