mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sznajder ForMailingList <bs4mailingl...@gmail.com>
Subject Re: Running Mahout Example
Date Wed, 22 Jan 2014 22:30:07 GMT
hi

I extracted the trunk/ code..

Benjamin


On Wed, Jan 22, 2014 at 5:50 PM, Suneel Marthi <suneel_marthi@yahoo.com>wrote:

> What's ur Mahout version?
>
>
>
>
>
> On Wednesday, January 22, 2014 10:27 AM, Sznajder ForMailingList <
> bs4mailinglist@gmail.com> wrote:
>
> Strangely,
>
> I get the following:
>
> MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath.
> Exception in thread "main" java.lang.NoClassDefFoundError: classpath
> Caused by: java.lang.ClassNotFoundException: classpath
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
> Could not find the main class: classpath.  Program will exit.
> Running on hadoop, using
> /mnt/hdgpfs/shared_home/hadoop/IHC-0.20.2/bin/hadoop and
> HADOOP_CONF_DIR=/mnt/hdgpfs/shared_home/hadoop/IHC-0.20.2/conf
>
>
> Benjamin
>
>
>
> On Wed, Jan 22, 2014 at 4:59 PM, Suneel Marthi <suneel_marthi@yahoo.com
> >wrote:
>
> > Try examples /bin/cluster-reuters.sh
> >
> > Sent from my iPhone
> >
> > > On Jan 22, 2014, at 9:56 AM, Sznajder ForMailingList <
> > bs4mailinglist@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > I wished to run the mahout example for Kmeans algorithm.
> > >
> > > I suppose that it is:
> > > org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
> > >
> > > (1) Is it right?
> > >
> > >
> > > It looks for a /testdata/ directory. I did not find it
> > >
> > > (2) Where is it, please?
> > >
> > >
> > > I thought to use the reuters data set described in Manning book and I
> > > extracted it to my disk and pointed to this directory in the main
> method.
> > >
> > > However, I get the following, when running the Job:
> > >
> > > java.lang.NumberFormatException: For input string: "amex"
> > >    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
> > >    at java.lang.Double.valueOf(Unknown Source)
> > >    at
> > >
> >
> org.apache.mahout.clustering.conversion.InputMapper.map(InputMapper.java:48)
> > >    at
> > >
> >
> org.apache.mahout.clustering.conversion.InputMapper.map(InputMapper.java:1)
> > >    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
> > >    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
> > >    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
> > >    at
> > >
> org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:177)
> > >
> > >
> > > (3) What do I do wrong?
> > >
> > > Best regards
> > > Benjamin
> >
>

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