hive-user mailing list archives

Hello Tia,
Try to use fat jar.
If you are using maven, mvn assembly:single will generate the fat jar,
which includes all necessary jars in a single jar file.
Regards,
Sankar S
On Sat, Aug 2, 2014 at 5:17 PM, Brian Jeltema <
brian.jeltema@digitalenvoy.net> wrote:
> I've written a small UDF and placed it in a JAR (a.jar).
>
> The UDF has a dependency on a class in another JAR (b.jar).
>
> in Hive, I do:
>
> add jar a.jar;
> add jar b.jar;
> create temporary function .....;
>
> but when I execute the UDF, the dependency in b.jar is not found
> (NoClassDefFoundError).
> If I create a single JAR that contains the UDF and it's dependencies, the
> function works.
> Do all of the classes required for a UDF have to be supplied in a single
> JAR file?
>
> TIA
> Brian