[
https://issues.apache.org/jira/browse/MAHOUT-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom Lampert updated MAHOUT-1625:
--------------------------------
Priority: Major (was: Minor)
> lucene2seq: failure to convert a document that does not contain a field (the
> field is not required)
> ---------------------------------------------------------------------------------------------------
>
> Key: MAHOUT-1625
> URL: https://issues.apache.org/jira/browse/MAHOUT-1625
> Project: Mahout
> Issue Type: Bug
> Components: CLI
> Affects Versions: 1.0
> Environment: CentOS 6.5
> Reporter: Tom Lampert
> Labels: LuceneIndexHelper, lucene, lucene2seq, mahout
> Fix For: 1.0
>
>
> When trying to convert a lucene index in which not all fields are required
> (and therefore in some documents the field does not exist) the following
> exception is thrown:
> java.lang.IllegalArgumentException: Field 'MISSING_FIELDNAME' does not exist
> in the index
> at
> org.apache.mahout.text.LuceneIndexHelper.fieldShouldExistInIndex(LuceneIndexHelper.java:36)
> at
> org.apache.mahout.text.LuceneSegmentRecordReader.initialize(LuceneSegmentRecordReader.java:63)
> at
> org.apache.mahout.text.LuceneSegmentInputFormat.createRecordReader(LuceneSegmentInputFormat.java:76)
> at
> org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.<init>(MapTask.java:492)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:735)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1557)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
> It would be good to either ignore missing field values by default or to have
> an additional parameter that turns ignoring them on or off.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)