Please e-mail the whole list, not me.

You are writing "-flag" instead of "--flag" -- check your command line.

On Wed, Dec 7, 2011 at 7:40 AM, Administrator <[email protected]> wrote:

> hi,sorry to bother U.I'm encounted a problem when run mahout like this:
> and i also saw the https://issues.apache.org/jira/browse/MAHOUT-501.
> and the conf/lucene.vector.props is correct, but the size of it
> is 0.please help me, thanks a lot.
>
> /var/mahout-distribution-0.5# bin/mahout lucene.vector
> -dir /home/michzel/index -output /home/michzel/part-out.vec -field
> contents -dictOut /home/michzel/dict.out -norm 2
> Running on hadoop, using HADOOP_HOME=/var/hadoop
> HADOOP_CONF_DIR=/var/hadoop/conf
> 11/12/07 15:28:05 WARN driver.MahoutDriver: No lucene.vector.props found
> on classpath, will use command-line arguments only
> 11/12/07 15:28:05 ERROR lucene.Driver: Exception
> org.apache.commons.cli2.OptionException: Unexpected 2 while processing
> Options
>        at org.apache.commons.cli2.commandline.Parser.parse(Parser.java:99)
>        at
> org.apache.mahout.utils.vectors.lucene.Driver.main(Driver.java:124)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at org.apache.hadoop.util.ProgramDriver
> $ProgramDescription.invoke(ProgramDriver.java:68)
>        at
> org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>        at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:187)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> Usage:
>  [--dir <dir> --idField <idField> --output <output> --delimiter
> <delimiter>
> --help --field <field> --max <max> --dictOut <dictOut> --norm
> <norm>
> --maxDFPercent <maxDFPercent> --weight <weight> --minDF
> <minDF>]
> Options
>  --dir (-d) dir                      The Lucene
> directory
>  --idField (-i) idField              The field in the index containing
> the
>                                      index.  If null, then the Lucene
> internal
>                                      doc id is used which is prone to
> error if
>                                      the underlying index
> changes
>  --output (-o) output                The output
> file
>  --delimiter (-l) delimiter          The delimiter for outputting
> the
>
> dictionary
>  --help (-h)                         Print out
> help
>  --field (-f) field                  The field in the
> index
>  --max (-m) max                      The maximum number of vectors to
> output.
>                                      If not specified, then it will
> loop over
>                                      all
> docs
>  --dictOut (-t) dictOut              The output of the
> dictionary
>  --norm (-n) norm                    The norm to use, expressed as
> either a
>                                      double or "INF" if you want to use
> the
>                                      Infinite norm.  Must be greater or
> equal
>                                      to 0.  The default is not to
> normalize
>  --maxDFPercent (-x) maxDFPercent    The max percentage of docs for the
> DF.
>                                      Can be used to remove really
> high
>                                      frequency terms.  Expressed as an
> integer
>                                      between 0 and 100. Default is
> 99.
>  --weight (-w) weight                The kind of weight to use.
> Currently TF
>                                      or
> TFIDF
>  --minDF (-md) minDF                 The minimum document frequency.
> Default
>                                      is
> 1
> 11/12/07 15:28:05 INFO driver.MahoutDriver: Program took 38 ms
>
>
>

Reply via email to