Getting errors trying to generate the output file. Any help would be greatly
appreciated. Thanks

Index files are as follows:

_0.fdt
_0.fdx
_0.fnm
_0.frq
_0.nrm
_0.prx
_0.tii
_0.tis
segments.gen
segments_1

When I enter in this command I get the following errors:
$mahout org.apache.mahout.utils.vectors.lucene.Driver --dir
/home/temp/text_output --output /home/temp/text_output --dictOut
/home/temp/text_output --max 50 --field contents

Running on hadoop, using HADOOP_HOME=/usr/lib/hadoop
No HADOOP_CONF_DIR set, using /usr/lib/hadoop/conf
11/04/14 16:15:27 WARN driver.MahoutDriver: No
org.apache.mahout.utils.vectors.lucene.Driver.props found on classpath, will
use command-line arguments only
Exception in thread "main" org.apache.lucene.index.CorruptIndexException:
Unknown format version: -11
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:249)
        at
org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:73)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:677)
        at
org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:316)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:202)
        at
org.apache.mahout.utils.vectors.lucene.Driver.main(Driver.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
        at
org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
        at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:184)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:186)


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Error-Generating-an-output-file-from-a-Lucene-Index-tp2819407p2819407.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Reply via email to