FAQ
Hi ALL,

We have built Lucene indexes on a Solaris box. We have tested them and they
can be accessed OK when residing on a native Linux filesystem.
What we like to do is export through NFS the Lucene indexes from the
Solaris box to the Linux box (mainly for development and testing purposes).

When we try to export through NFS Lucene indexes to the Linux box from the
Solaris server, we get an error:

...............
searchables[i] = new IndexSearcher(indexDirs.get(i));
...........................................

throws an IOException when the dir passed to IndexSearcher is a mounted one.

Following is the stack trace proceeded by the Directory value...

FSDirectory@/data/lucene/alpha2006
Can not create searcher: java.io.IOException: Invalid argument
java.io.IOException: Invalid argument
at java.io.RandomAccessFile.length(Native Method)
at java.io.RandomAccessFile.length(Native Method)

at org.apache.lucene.store.FSInputStream.(FSDirectory.java:268)
at
org.apache.lucene.index.CompoundFileReader.(SegmentReader.java:104)
at org.apache.lucene.index.SegmentReader.(IndexReader.java:118)
at org.apache.lucene.store.Lock$With.run(Lock.java:109)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
at
org.apache.lucene.search.IndexSearcher.(LuceneSearcher.java:54)
at
gov.lanl.rlsearch.servlets.ScienceServerSearchServlet.doGet(ScienceServerSearchServlet.java:494)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)



Could you please help ?
Thanks a lot in advance for your help,

Mariella Di Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedApr 21, '05 at 1:14p
activeApr 21, '05 at 1:14p
posts1
users1
websitelucene.apache.org

1 user in discussion

Mariella Digiacomo: 1 post

People

Translate

site design / logo © 2022 Grokbase