Space: Apache Mahout (https://cwiki.apache.org/confluence/display/MAHOUT)
Page: Visualizing Sample Clusters 
(https://cwiki.apache.org/confluence/display/MAHOUT/Visualizing+Sample+Clusters)
Comment: 
https://cwiki.apache.org/confluence/display/MAHOUT/Visualizing+Sample+Clusters?focusedCommentId=25202641#comment-25202641

Comment added by Sohini:
---------------------------------------------------------------------

How do I execute these programs from command line.I get following error:

Running on hadoop, using HADOOP_HOME=/usr/local/hadoop
No HADOOP_CONF_DIR set, using /usr/local/hadoop/conf
11/02/21 04:00:11 WARN driver.MahoutDriver: No 
org.apache.mahout.clustering.display.DisplayCanopy.props found on classpath, 
will use command-line arguments only
Exception in thread "main" java.lang.IllegalAccessException: Class 
org.apache.hadoop.util.ProgramDriver$ProgramDescription can not access a member 
of class org.apache.mahout.clustering.display.DisplayCanopy with modifiers 
"public static"
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
    at java.lang.reflect.Method.invoke(Method.java:588)
    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)
    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)

At command prompt, I give the following command:

/usr/local/mahout-distribution-0.4/bin/mahout  
org.apache.mahout.clustering.display.DisplayCanopy

I have set all relevant environment variables.
Any pointers are welcome. Thanks.


Change your notification preferences: 
https://cwiki.apache.org/confluence/users/viewnotifications.action

Reply via email to