You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Sebastian Schelter (JIRA)" <ji...@apache.org> on 2011/06/04 12:53:47 UTC

[jira] [Commented] (MAHOUT-722) Ignore the line when input text file contains irregular entry

    [ https://issues.apache.org/jira/browse/MAHOUT-722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044266#comment-13044266 ] 

Sebastian Schelter commented on MAHOUT-722:
-------------------------------------------

I also like the idea, because it makes the code more robust.

> Ignore the line when input text file contains irregular entry
> -------------------------------------------------------------
>
>                 Key: MAHOUT-722
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-722
>             Project: Mahout
>          Issue Type: Improvement
>            Reporter: Daisuke Miyamoto
>            Assignee: Sean Owen
>             Fix For: 0.6
>
>         Attachments: ignore.patch
>
>
> RecommenderJob with usersFile/itemsFile which contains newline at end of file is failed.
> {code}
> java.lang.NumberFormatException: For input string: ""
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> 	at java.lang.Long.parseLong(Long.java:431)
> 	at java.lang.Long.parseLong(Long.java:468)
> 	at org.apache.mahout.cf.taste.hadoop.item.UserVectorSplitterMapper.setup(UserVectorSplitterMapper.java:61)
> 	at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142)
> 	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:629)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:310)
> 	at org.apache.hadoop.mapred.Child.main(Child.java:170)
> {code}
> I think lines which cause parse error should be ignored.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira