You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Philipp Dobrigkeit <PD...@gmx.de> on 2009/02/13 02:00:00 UTC
Re: Running RowCounter as Standalone [solved]
Thank you and sorry for the mixup with the lists, I was convinced since I call ./hadoop to run it, that it might be more related to this list.
But I now imported all the .jars in the lib folders of both Hadoop and Hbase and now it works.
Best, Philipp
-------- Original-Nachricht --------
> Datum: Thu, 12 Feb 2009 18:54:00 -0500
> Von: Jean-Daniel Cryans <jd...@apache.org>
> An: core-user@hadoop.apache.org, "hbase-user@hadoop.apache.org" <hb...@hadoop.apache.org>
> Betreff: Re: Running RowCounter as Standalone
> Philipp,
>
> For HBase-related questions, please post to hbase-user@hadoop.apache.org
>
> Try importing commons-cli-2.0-SNAPSHOT.jar as well as any other jar in the
> lib folder just to be sure you won't get any other missing class def
> error.
>
> J-D
>
> On Thu, Feb 12, 2009 at 6:32 PM, Philipp Dobrigkeit
> <PD...@gmx.de>wrote:
>
> > I am trying to run HBase as a Data Source for my Map/Reduce.
> >
> > I was able to use the "./bin/hadoop jar hbase.0.19.0.jar rowcounter
> output
> > test..." from the command line.
> >
> > But I would like to run it from my eclipse as well, so I can learn and
> > adapt it to my own Map/Reduce needs. I opened a new project, imported
> > hbase.0.19.0.jar, hadoop.0.19.0-core.jar (and the commons-logging) and
> now I
> > am trying to run the code of RowCounter.
> >
> > But I get the following error message:
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/commons/cli/ParseException
> > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59)
> > at hbase.RowCounter.main(RowCounter.java:139)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.commons.cli.ParseException
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > ... 2 more
> >
> > Any comments on what I can try to do?
> >
> > Best,
> > Philipp
--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a