You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Ofer Mendelevitch (JIRA)" <ji...@apache.org> on 2013/01/08 04:58:12 UTC

[jira] [Commented] (MAHOUT-1125) DatasetSplitter.run doesn't parseArguments before getOption so throws and exception always

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

Ofer Mendelevitch commented on MAHOUT-1125:
-------------------------------------------

I get the same issue, and adding the lines mentioned by Pat seems to work (you also have to add import statements for Map and List). I am attaching a patch.

                
> DatasetSplitter.run doesn't parseArguments before getOption so throws and exception always
> ------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-1125
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1125
>             Project: Mahout
>          Issue Type: Bug
>          Components: Collaborative Filtering
>    Affects Versions: 0.8
>         Environment: all
>            Reporter: Pat Ferrel
>            Assignee: Sean Owen
>            Priority: Blocker
>              Labels: patch
>             Fix For: 0.8
>
>
> In DatasetSplitter.run it looks like getOption is being called before the parseArguments. When I do this 
> Map<String,List<String>> parsedArgs = parseArguments(args);
> if (parsedArgs == null) {
>  return -1;
> }
> before any call to getOption in DatasetSplitter.run it completes correctly. Not exactly sure how this is supposed to be done, it doesn't look like the options get parsed in the super class automatically.
> This will cause any invocation of splitDataset or DatasetSplitter to crash running the current trunk. 
> On Dec 5, 2012, at 1:58 PM, Pat Ferrel <pa...@gmail.com> wrote:
> does anyone know if mahout/examples/bin/factorize-movielens-1M.sh is still working? CLI version of splitDataset is crashing in my build (latest trunk). Even as in "mahout splitDataset" to get the params. Wouldn't be the first time I mucked up a build though.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira