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 pierce (Created) (JIRA)" <ji...@apache.org> on 2012/03/14 23:50:40 UTC

[jira] [Created] (MAHOUT-993) Some vector dumper flags are expecting arguments.

Some vector dumper flags are expecting arguments.
-------------------------------------------------

                 Key: MAHOUT-993
                 URL: https://issues.apache.org/jira/browse/MAHOUT-993
             Project: Mahout
          Issue Type: Bug
          Components: Integration
            Reporter: tom pierce
            Priority: Minor
             Fix For: 0.7


I ran VectorDumper from the command line like this:

$MAHOUT_HOME/bin/mahout vectordump -i ${HDFS_VECTS} --csv -p > ${LOCAL_VECTS}

I've used this command before to dump similar vectors, but I'm now getting missing argument errors:

ERROR common.AbstractJob: Missing value(s) --printKey

You can add an argument after each of these flags to work around this problem for now:

$MAHOUT_HOME/bin/mahout vectordump -i ${INPATH} --csv x -p x > ${LOCAL_OUT}

I encountered this on the trunk, but I think it's likely this problem went out in 0.6; I can check in the next fews days if nobody does it first.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-993) Some vector dumper flags are expecting arguments.

Posted by "Jeff Eastman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Eastman updated MAHOUT-993:
--------------------------------

    Fix Version/s:     (was: 0.7)
                   0.8
    
> Some vector dumper flags are expecting arguments.
> -------------------------------------------------
>
>                 Key: MAHOUT-993
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-993
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>            Reporter: tom pierce
>            Priority: Minor
>             Fix For: 0.8
>
>
> I ran VectorDumper from the command line like this:
> $MAHOUT_HOME/bin/mahout vectordump -i ${HDFS_VECTS} --csv -p > ${LOCAL_VECTS}
> I've used this command before to dump similar vectors, but I'm now getting missing argument errors:
> ERROR common.AbstractJob: Missing value(s) --printKey
> You can add an argument after each of these flags to work around this problem for now:
> $MAHOUT_HOME/bin/mahout vectordump -i ${INPATH} --csv x -p x > ${LOCAL_OUT}
> I encountered this on the trunk, but I think it's likely this problem went out in 0.6; I can check in the next fews days if nobody does it first.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-993) Some vector dumper flags are expecting arguments.

Posted by "Andrew Look (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Look updated MAHOUT-993:
-------------------------------

               Labels: integration  (was: )
    Affects Version/s: 0.6
               Status: Patch Available  (was: Open)

Patch simply changes the following options to flags: useKey, printKey, csv, namesAsComments, nameOnly, sortVectors, quiet, sizeOnly.
                
> Some vector dumper flags are expecting arguments.
> -------------------------------------------------
>
>                 Key: MAHOUT-993
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-993
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 0.6
>            Reporter: tom pierce
>            Priority: Minor
>              Labels: integration
>             Fix For: 0.8
>
>         Attachments: MAHOUT-993.patch
>
>
> I ran VectorDumper from the command line like this:
> $MAHOUT_HOME/bin/mahout vectordump -i ${HDFS_VECTS} --csv -p > ${LOCAL_VECTS}
> I've used this command before to dump similar vectors, but I'm now getting missing argument errors:
> ERROR common.AbstractJob: Missing value(s) --printKey
> You can add an argument after each of these flags to work around this problem for now:
> $MAHOUT_HOME/bin/mahout vectordump -i ${INPATH} --csv x -p x > ${LOCAL_OUT}
> I encountered this on the trunk, but I think it's likely this problem went out in 0.6; I can check in the next fews days if nobody does it first.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-993) Some vector dumper flags are expecting arguments.

Posted by "Andrew Look (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Look updated MAHOUT-993:
-------------------------------

    Attachment: MAHOUT-993.patch
    
> Some vector dumper flags are expecting arguments.
> -------------------------------------------------
>
>                 Key: MAHOUT-993
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-993
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 0.6
>            Reporter: tom pierce
>            Priority: Minor
>              Labels: integration
>             Fix For: 0.8
>
>         Attachments: MAHOUT-993.patch
>
>
> I ran VectorDumper from the command line like this:
> $MAHOUT_HOME/bin/mahout vectordump -i ${HDFS_VECTS} --csv -p > ${LOCAL_VECTS}
> I've used this command before to dump similar vectors, but I'm now getting missing argument errors:
> ERROR common.AbstractJob: Missing value(s) --printKey
> You can add an argument after each of these flags to work around this problem for now:
> $MAHOUT_HOME/bin/mahout vectordump -i ${INPATH} --csv x -p x > ${LOCAL_OUT}
> I encountered this on the trunk, but I think it's likely this problem went out in 0.6; I can check in the next fews days if nobody does it first.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-993) Some vector dumper flags are expecting arguments.

Posted by "Andrew Look (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396189#comment-13396189 ] 

Andrew Look commented on MAHOUT-993:
------------------------------------

Has anyone picked this up? Looks like a good one to tackle for my first Mahout patch.

Looking at the code, it's unclear which of these are supposed to have arguments; I'm guessing that the following options do not accept arguments:

  addOption("useKey", "u", "If the Key is a vector than dump that instead", false);
  addOption("printKey", "p", "Print out the key as well, delimited by tab (or the value if useKey is true", false);
  addOption("csv", "c", "Output the Vector as CSV.  Otherwise it substitutes in the terms for vector cell entries", false);
  addOption("namesAsComments", "n", "If using CSV output, optionally add a comment line for each NamedVector (if the vector is one) printing out the name", false);
  addOption("nameOnly", "N", "Use the name as the value for each NamedVector (skip other vectors)", false);
  addOption("sortVectors", "sort", "Sort output key/value pairs of the vector entries in abs magnitude descending order", false);
  addOption("quiet", "q", "Print only file contents", false);
  addOption("sizeOnly", "sz", "Dump only the size of the vector", false);

Presumably, if these are all non-required options that do not take any arguments, I can leverage AbstractJob.addFlag(). 

Does this sound right?
                
> Some vector dumper flags are expecting arguments.
> -------------------------------------------------
>
>                 Key: MAHOUT-993
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-993
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>            Reporter: tom pierce
>            Priority: Minor
>             Fix For: 0.8
>
>
> I ran VectorDumper from the command line like this:
> $MAHOUT_HOME/bin/mahout vectordump -i ${HDFS_VECTS} --csv -p > ${LOCAL_VECTS}
> I've used this command before to dump similar vectors, but I'm now getting missing argument errors:
> ERROR common.AbstractJob: Missing value(s) --printKey
> You can add an argument after each of these flags to work around this problem for now:
> $MAHOUT_HOME/bin/mahout vectordump -i ${INPATH} --csv x -p x > ${LOCAL_OUT}
> I encountered this on the trunk, but I think it's likely this problem went out in 0.6; I can check in the next fews days if nobody does it first.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-993) Some vector dumper flags are expecting arguments.

Posted by "Jake Mannix (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229731#comment-13229731 ] 

Jake Mannix commented on MAHOUT-993:
------------------------------------

Yeah, I think I've always done "-p true" not realizing that it was actually necessary.
                
> Some vector dumper flags are expecting arguments.
> -------------------------------------------------
>
>                 Key: MAHOUT-993
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-993
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>            Reporter: tom pierce
>            Priority: Minor
>             Fix For: 0.7
>
>
> I ran VectorDumper from the command line like this:
> $MAHOUT_HOME/bin/mahout vectordump -i ${HDFS_VECTS} --csv -p > ${LOCAL_VECTS}
> I've used this command before to dump similar vectors, but I'm now getting missing argument errors:
> ERROR common.AbstractJob: Missing value(s) --printKey
> You can add an argument after each of these flags to work around this problem for now:
> $MAHOUT_HOME/bin/mahout vectordump -i ${INPATH} --csv x -p x > ${LOCAL_OUT}
> I encountered this on the trunk, but I think it's likely this problem went out in 0.6; I can check in the next fews days if nobody does it first.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira