wlxiong / galagosearch

Automatically exported from code.google.com/p/galagosearch
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Quick start tutorial index build fails on OSX 10.5.6 with FileNotFoundException for wiki-small.index/documentNames #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Follow the indexing steps of the tutorial.

What is the expected output? What do you see instead?
harvey:~/Development/galago-test$ /bin/sh ../galagosearch-1.01/galagosearch-
core/target/appassembler/bin/galago build wiki-small.index wiki-small.corpus 
2009-03-12 08:40:02.925::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-03-12 08:40:02.926::INFO:  jetty-6.1.5
2009-03-12 08:40:02.995::INFO:  Started SocketConnector@0.0.0.0:51999
Status: http://localhost:51999
Exception in thread "main" java.util.concurrent.ExecutionException: Stage threw 
an exception: 
    at 
org.galagosearch.tupleflow.execution.JobExecutor$JobExecutionStatus.waitForStage
s(JobExecutor
.java:1135)
    at 
org.galagosearch.tupleflow.execution.JobExecutor$JobExecutionStatus.run(JobExecu
tor.java:105
4)
    at org.galagosearch.tupleflow.execution.JobExecutor.runWithServer(JobExecutor.java:1191)
    at org.galagosearch.tupleflow.execution.JobExecutor.runLocally(JobExecutor.java:1215)
    at org.galagosearch.core.tools.App.handleBuild(App.java:121)
    at org.galagosearch.core.tools.App.main(App.java:422)
Caused by: java.io.IOException: Couldn't instantiate a step object: 
org.galagosearch.core.index.DocumentNameWriter
    at 
org.galagosearch.tupleflow.execution.StageInstanceFactory.instantiateStep(StageI
nstanceFactory.
java:147)
    at 
org.galagosearch.tupleflow.execution.StageInstanceFactory.instantiate(StageInsta
nceFactory.java:
100)
    at 
org.galagosearch.tupleflow.execution.StageInstanceFactory.instantiate(StageInsta
nceFactory.java:
80)
    at 
org.galagosearch.tupleflow.execution.ThreadedStageExecutor$InstanceRunnable.run(
ThreadedSt
ageExecutor.java:56)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
    at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.
java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at 
org.galagosearch.tupleflow.execution.StageInstanceFactory.instantiateStep(StageI
nstanceFactory.
java:137)
    ... 6 more
Caused by: java.io.FileNotFoundException: wiki-small.index/documentNames (No 
such file or 
directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    at org.galagosearch.core.index.DocumentNameWriter.<init>(DocumentNameWriter.java:39)
    ... 11 more

What version of the product are you using? On what operating system?

The fault occurs with the binary 1.0 and 1.01 distributions, as with the src 
1.01 distribution.

harvey:~/Development/galago-test$ uname -a
Darwin harvey.cs.umass.edu 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 
17:37:00 PST 2008; 
root:xnu-1228.9.59~1/RELEASE_I386 i386

Core Solo 1.5GHz, 2GB memory.
Please provide any additional information below.
The fault does not occur on linux:
indri1:~> uname -a
Linux indri1.cs.umass.edu 2.6.12-2.3.legacy_FC3 #1 Sun Feb 19 07:48:10 EST 2006 
i686 i686 
i386 GNU/Linux

This appears to be a race where the top-level index directory has not yet been 
created when the 
DocumentNameWriter is instantiated. Creating the top-level index directory 
manually prior to 
running galago  resolves the FileNotFoundException issue and enables a 
successful index build.

Original issue reported on code.google.com by david.fi...@gmail.com on 12 Mar 2009 at 2:03

GoogleCodeExporter commented 9 years ago
I also had the issue on Ubuntu 8.10, following the quickstart instructions for 
Galago
1.01 binary distribution.

Original comment by tim.g.ar...@gmail.com on 23 Apr 2009 at 7:08

GoogleCodeExporter commented 9 years ago
Thanks David and Tim for the bug reports.

Original comment by trevor.s...@gmail.com on 10 May 2009 at 10:49