简体   繁体   English

Linux上的Lucene 4.0-IndexWriter错误:无可用锁

[英]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: 尝试在linux上使用Lucene索引内容时,出现以下错误消息:

 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 . 我的代码可以在WindowsMac OS上完美Mac OS

Any ideas? 有任何想法吗?

Check locking services in file system where you are indexing 检查要建立索引的文件系统中的锁定服务

ps aux | ps aux | grep lockd grep锁定

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 http://lucene.472066.n3.nabble.com/No-locks-available-td2272029.html https://serverfault.com/questions/61594/what-does-no-locks-available-mean

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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