hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhruv <dhru...@gmail.com>
Subject Re: Adding external jar
Date Thu, 04 Apr 2013 19:57:07 GMT
-libjar should work fine but you need to make sure that your jars are in
the Hadoop client's classpath as well.

Check HADOOP_CLASSPATH variable and see if it references your jars or not.

If it doesn't, you can add "export HADOOP_CLASSPATH=/path/to/your/jar" in
your conf/hadoop-env.sh file.


On Thu, Apr 4, 2013 at 12:21 PM, Aji Janis <aji1705@gmail.com> wrote:

> We are running (ancient) hadoop version 0.20.203 and when running the
> following command
>
> /opt/hadoop/bin/hadoop jar my.jar full.path.to.my.class.example -libjars "
> /opt/../abc.jar, /opt/../xyz.jar"
>
> it keeps throwing the error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
>
> the class its complaining about exists is the .jar I am including in
> -libjars. Does anyone know (or tell me how I can find) if 0.20.203 supports
> -libjars ? or any pointers to how can debug this issue would be great.
> Thankyou.
>

Mime
View raw message