Ok, I'll have to look into this, because the last time I modified CVB0Driver etc, I specifically tested it against cluster_reuters.sh, and it did exactly what was expected (after having been broken for a while, at least the doc-topic output part).
On Mon, Jun 24, 2013 at 10:05 AM, Suneel Marthi <suneel_mar...@yahoo.com>wrote: > I have been seeing a similar error (running against trunk) when running > cluster_reuters.sh (with CVB clustering). It complains that "Output > directory: /reuters-lda already exists". > > This was working fine a few weeks ago, not sure which of the intermediate > code changes against CVB0Driver, or CVB0DocInferenceMapper could be causing > this to happen now. > > > > > > ________________________________ > From: Mark Wicks <mawi...@gmail.com> > To: user@mahout.apache.org > Sent: Monday, June 24, 2013 12:57 PM > Subject: Re: Interpretating doc-topic output of cvb > > > Thanks for the response. > > The command line I used is > > mahout cvb -ow -dict sparse/dictionary.file-0 -i matrix/matrix -o > cvb/topics -dt cvb/classifications -block 2 -x 2 -cd 1e-10 -k2 > -seed 6956 -tf 0.25 > > This completes with no errors in Mahout 0.7. With Mahout/cvb from trunk I > get: > > 13/06/24 12:48:32 INFO cvb.CVB0Driver: About to run: Writing final > topic/term distributions from temp/topicModelState/model-2 to > cvb/topics > 13/06/24 12:48:32 INFO input.FileInputFormat: Total input paths to process > : 10 > 13/06/24 12:48:33 INFO cvb.CVB0Driver: About to run: Writing final > document/topic inference from matrix/matrix to cvb/classifications > 13/06/24 12:48:33 INFO mapred.JobClient: Cleaning up the staging area > hdfs:// > 192.168.84.8:9000/tmp/hadoop-hadoop/mapred/staging/mwicks/.staging/job_201304292057_0252 > 13/06/24 12:48:33 ERROR security.UserGroupInformation: > PriviledgedActionException as:mwicks > cause:org.apache.hadoop.mapred.FileAlreadyExistsException: Output > directory cvb/topics already exists > Exception in thread "main" > org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory > cvb/topics already exists > at > org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:137) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:949) > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:912) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1149) > at > org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:912) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:500) > at > org.apache.mahout.clustering.lda.cvb.CVB0Driver.writeDocTopicInference(CVB0Driver.java:463) > at > org.apache.mahout.clustering.lda.cvb.CVB0Driver.run(CVB0Driver.java:339) > at > org.apache.mahout.clustering.lda.cvb.CVB0Driver.run(CVB0Driver.java:198) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at > org.apache.mahout.clustering.lda.cvb.CVB0Driver.main(CVB0Driver.java:534) > 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:601) > 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:195) > 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:601) > at org.apache.hadoop.util.RunJar.main(RunJar.java:156) > > > I am certain that "cvb/topics" did not exist before running "mahout > cvb". After the error, cvb/topics exists and contains data, but > cvb/classifications does not exist. > > Mark > -- -jake