avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Appan Thirumaligai <aol.appa...@gmail.com>
Subject Re: Avro and Hive contd
Date Sat, 17 Mar 2012 23:29:27 GMT
Nikhil,

Something like this should work:

/<mypath>/hive-0.7.1-cdh3u2/bin/hive --auxpath
/usr/share/java/mysql-connector-java.jar:/<mypath>/hive/lib/avro-1.5.4.jar:/<mypath>/hive/lib/avro-ipc-1.5.4.jar:
/<mypath>/hive/lib/avro-mapred-1.5.4.jar:/<mypath>
/hive/lib/haivvreo-1.0.7-cdh-2.jar:/<mypath>
/hive/lib/snappy-java-1.0.3.2.jar

If you pass the path to all the JARs that you are using it should work. In
our case we use haivvreo, snappy, mysql...


On Fri, Mar 16, 2012 at 3:27 PM, snikhil0 <snikhil@telenav.com> wrote:

> Hello Jakob,
>
> I tried both options:
>
> 1. copied the jars (jackson*, avro*, haivvero*) to $HIVE_HOME/lib
> 2. pointed the HIVE_AUX_JARS_PATH to a folder that contained all the above
> jars.
>
> Started hive.
>
> list jars; does not show me the above jars?
> Only if I add the jars manually using add jar do I get the desired jars as
> an output on list jars;
>
> However, I tried all cases and I still get the same error...Schema_init..
> java.lang.NoClassDefFoundError
>
> What am I doing wrong?
>
> System:
> Hive 0-7.1-bin also tried 0.8.1-bin
> avro 1.4.2 (also tried 1.5.3 and 1.6.2)
> jackson (corresponding versions)
> hadoop-0.20.205 (also tried running local without hadoop)
>
> Thanks,
> Nikhil
>
> --
> View this message in context:
> http://apache-avro.679487.n3.nabble.com/Avro-and-Hive-contd-tp3773468p3833357.html
> Sent from the Avro - Users mailing list archive at Nabble.com.
>

Mime
View raw message