mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julián Limón Núñez <julian.li...@tukipa.com>
Subject Re: Error running bin/mahout rowid
Date Sat, 16 Apr 2011 03:09:20 GMT
Nevermind. I ran the RowIdJob class hard-coding the paths and it worked.

El 15 de abril de 2011 19:54, Julián Limón Núñez
<julian.limon@tukipa.com>escribió:

> Hello all,
>
> I hope you guys can shed some light here. I've been trying to use the
> command line to convert a seq2sparse-generated vector into a matrix form
> that is a SequenceFile<IntWritable,VectorWritable> and a
> SequenceFile<IntWritable,Text> as suggested in
> https://cwiki.apache.org/MAHOUT/dimensional-reduction.html and
>
> http://search.lucidimagination.com/search/document/748181681ae5238b/need_a_little_help_with_using_svd#994da1aa86154c12
>
> However, I'm getting the following error:
>
> bin/mahout rowid --input
> /home/julian/Documents/code/bb/test6/vectors/tfidf-vectors/part-r-00000
> --output /home/julian/Documents/code/bb/test6/matrix/
> no HADOOP_HOME set, running locally
> Exception in thread "main" java.lang.IllegalArgumentException: Can not
> create a Path from a null string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:78)
>  at org.apache.hadoop.fs.Path.<init>(Path.java:90)
> at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:41)
>  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
>  at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:79)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> 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:184)
>
> I've already tried to change "input" and "output" for "mapred.input.dir"
> and "mapred.output.dir" to no avail. Any hints on what may be causing the
> error? Alternatively, a pointer to the classes I could use to achieve the
> same result would also help.
>
> Thanks a lot,
>
> Julian
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message