You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Tom Lampert (JIRA)" <ji...@apache.org> on 2014/11/03 17:44:33 UTC

[jira] [Created] (MAHOUT-1625) lucene2seq: failure to convert a document that does not contain a field (the field is not required)

Tom Lampert created MAHOUT-1625:
-----------------------------------

             Summary: 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
    Affects Versions: 1.0
         Environment: CentOS 6.5
            Reporter: Tom Lampert
            Priority: Minor
             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)