mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Eastman <j...@windwardsolutions.com>
Subject Re: Dealing with kmean and meanshift output
Date Fri, 09 Apr 2010 19:48:25 GMT
You might try running in a debugger, but it looks to me like there is 
some problem with your sequenceFileDir file spec. The code is expecting 
a directory containing the clusters, not a single file.


adam35413 wrote:
> I would agree; if $HADOOP_HOME is set, CONF should have been set as well.  I
> fixed that environment variable, and now the error is:
>
> bin/mahout clusterdump --seqFileDir part-00000 --output testFile.txt 
> running on hadoop, using
> HADOOP_HOME=/home/adam/Coding/hadoopResearch/hadoop-0.20.2 and
> HADOOP_CONF_DIR=/home/adam/Coding/hadoopResearch/hadoop-0.20.2/conf
> 10/04/09 15:11:08 ERROR driver.MahoutDriver: MahoutDriver failed with args:
> [--seqFileDir, part-00000, --output, testFile.txt, null]
> null
> Exception in thread "main" java.lang.NullPointerException
> 	at
> org.apache.mahout.utils.clustering.ClusterDumper.printClusters(ClusterDumper.java:121)
> 	at
> org.apache.mahout.utils.clustering.ClusterDumper.main(ClusterDumper.java:302)
> 	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:172)
> 	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)
>
>   


Mime
View raw message