Did you make this index with the mahout job? Or is this from a separate app? There are a few different versions of Lucene index files out there; it's possible you made the files with a newer Lucene than is distributed with Mahout.
On 4/14/11, Philippe Adjiman <[email protected]> wrote: > Check your lucene code (where you are generating the index) and make sure > your indexed fields have the right properties. > Step 1 of that > post<http://philippeadjiman.com/blog/2010/12/30/how-to-easily-build-and-observe-tf-idf-weight-vectors-with-lucene-and-mahout/> > might > help you to sort out the issue. > > -Philippe. > > On Thu, Apr 14, 2011 at 10:35 AM, JJJ959 <[email protected]> wrote: > >> 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. >> > > > > -- > Philippe Adjiman | twitter: padjiman | linkedin: > il.linkedin.com/in/philippeadjiman | blog: http://philippeadjiman.com/blog > -- Lance Norskog [email protected]
