It's complaining that "-dt sequence" is invalid. It should be "-dt sequencefile", if I read the code correctly. It's correct in the book. :)
On Fri, Oct 21, 2011 at 7:11 PM, Joel Rivera <[email protected]> wrote: > Based on the book "Mahout in action", i was trying to use the > `LDAPrintTopics`, > but I get the following error: > > WARN driver.MahoutDriver: No > org.apache.mahout.clustering.lda.LDAPrintTopics.props found on classpath, > will use command-line arguments only > Exception in thread "main" java.lang.IllegalArgumentException: Invalid > dictionary format > at > org.apache.mahout.clustering.lda.LDAPrintTopics.main(LDAPrintTopics.java:153) > 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:187) > 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.RunJar.main(RunJar.java:156) > > > This is the command line: > mahout org.apache.mahout.clustering.lda.LDAPrintTopics -i > test3/simple-lda-sparse/state-10/ \ > -d test3/simple-vectors/dictionary.file-* -dt sequence -w 10 > > I'm using mahout 0.5 in a local single node hadoop. > > If someone have any idea about this error, please let me know. > > Regards. > > > >
