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 Tamer Elsayed <te...@gmail.com> on 2008/02/18 22:39:47 UTC

external jar using eclipse-plugin?

Hi,

This is a question about using external jars when running a Hadoop mapreduce
job using eclipse-plugin. In my situation I want to use Lucene jar file. The
code compiles fine on my machine since the jar file is added to the project
external jars, but when I run it on Hadoop cluster, it gives me the
following error:
"Exception in thread "main" java.lang.NoClassDefFoundError:
org.apache.lucene.search.IndexSearcher"
which means that the jar file is not seen. I have tried to load it to HDFS
and use DistributedCache.addArchiveToClassPath but got the same error. The
code that needs Lucene is in both the controller and the mapper classes.

Any clue to how to resolve this?

Thanks in advance,
Tamer

Re: external jar using eclipse-plugin?

Posted by Tamer Elsayed <te...@gmail.com>.
It is "hadoop-0.15.3-eclipse-plugin".

Tamer

On 2/19/08, Christophe Taton <ta...@apache.org> wrote:
>
> Hi Tamer,
>
> Can you tell which version of the plug-in do you use?
> Unfortunately, I did not try this kind of configuration yet, but I'll work
> having it work...
>
> Thanks,
> Christophe
>
> On Feb 18, 2008 10:39 PM, Tamer Elsayed <te...@gmail.com> wrote:
>
> > Hi,
> >
> > This is a question about using external jars when running a Hadoop
> > mapreduce
> > job using eclipse-plugin. In my situation I want to use Lucene jar file.
> > The
> > code compiles fine on my machine since the jar file is added to the
> > project
> > external jars, but when I run it on Hadoop cluster, it gives me the
> > following error:
> > "Exception in thread "main" java.lang.NoClassDefFoundError:
> > org.apache.lucene.search.IndexSearcher"
> > which means that the jar file is not seen. I have tried to load it to
> HDFS
> > and use DistributedCache.addArchiveToClassPath but got the same error.
> The
> > code that needs Lucene is in both the controller and the mapper classes.
> >
> > Any clue to how to resolve this?
> >
> > Thanks in advance,
> > Tamer
> >
>



-- 
Proud to be a follower of the "Best of Mankind"
"وَاذْكُرْ رَبَّكَ إِذَا نَسِيتَ وَقُلْ عَسَى أَنْ يَهْدِيَنِي رَبِّي
لأقْرَبَ مِنْ هَذَا رَشَدًا"

Re: external jar using eclipse-plugin?

Posted by Christophe Taton <ta...@apache.org>.
Hi Tamer,

Can you tell which version of the plug-in do you use?
Unfortunately, I did not try this kind of configuration yet, but I'll work
having it work...

Thanks,
Christophe

On Feb 18, 2008 10:39 PM, Tamer Elsayed <te...@gmail.com> wrote:

> Hi,
>
> This is a question about using external jars when running a Hadoop
> mapreduce
> job using eclipse-plugin. In my situation I want to use Lucene jar file.
> The
> code compiles fine on my machine since the jar file is added to the
> project
> external jars, but when I run it on Hadoop cluster, it gives me the
> following error:
> "Exception in thread "main" java.lang.NoClassDefFoundError:
> org.apache.lucene.search.IndexSearcher"
> which means that the jar file is not seen. I have tried to load it to HDFS
> and use DistributedCache.addArchiveToClassPath but got the same error. The
> code that needs Lucene is in both the controller and the mapper classes.
>
> Any clue to how to resolve this?
>
> Thanks in advance,
> Tamer
>