mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anwar Rizal <anriza...@gmail.com>
Subject Re: Using ClusterEvaluator, RepresentativePointsDriver problem
Date Sun, 24 Jun 2012 10:27:59 GMT
J
D
On Jun 24, 2012 10:34 AM, "MaggyZhou" <zhoushandan@gmail.com> wrote:

> Hi All,
>
> I am an user of mahout, when I tried to use clusterEvaluator to compare the
> result of different clustering algorithm. i come across following problem.
> I
> am using mahout-0.6 and hadoop 1.0.3.
>
> And I confirmed that I copied mahout core, mahout, collection, and
> integretion jars into hadoop lib folders. However, and I found that
> DistanceMeasure has been embeded in mahout-core-0.6.jar.
>
> But this problem keeps happening.
>
> Can you please share your experience of working with this API.
>
> Thanks a lot !!!!
>
> DistanceMeasure measure = new
> EuclideanDistanceMeasure();//ClassUtils.instantiateAs(measureClass,
> DistanceMeasure.class);
>
> RepresentativePointsDriver.run(conf, new Path(uriInput+"part-r-00000"),
>                                new
> Path(uriClusteredPoint+"/part-m-00000"), new Path(output), measure,
> 10, false);
>
> ClusterEvaluator clusterEval=new ClusterEvaluator(conf, new
> Path(uriClusteredPoint+"/part-r-00000"));
> double interDis = clusterEval.interClusterDensity();
> double intraDis = clusterEval.intraClusterDensity();
> System.out.println("cluster evaluator: The inter distance: "+interDis);
> System.out.println("cluster evaluator: The intra distance: "+intraDis);
>
>
>
> Error: java.lang.ClassNotFoundException:
> org.apache.mahout.common.distance.DistanceMeasure
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:264)
>        at
> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:820)
>        at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:865)
>        at
> org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:199)
>        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:719)
>        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
>        at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
>        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:1121)
>        at org.apache.hadoop.mapred.Child.main(Child.java:249)
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Using-ClusterEvaluator-RepresentativePointsDriver-problem-tp3991106.html
> Sent from the Mahout User List mailing list archive at Nabble.com.
>

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