hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dere <>
Subject Re: Class not found exception from serde
Date Mon, 24 Feb 2014 22:44:46 GMT
I'm assuming the jar was loaded using ADD JAR as opposed to the jar being on the classpath?

On Feb 24, 2014, at 2:40 PM, Jason Dere <> wrote:

> I think TableDesc may not be using the right class loader here when it's trying to get
the class - other parts of the code specify the class loader to use but in this context it
does not.  I've opened
> On Feb 23, 2014, at 4:05 AM, Andreas Koch <> wrote:
>> I am trying to upgrade from Hive 0.10 to 0.12, but I am stuck trying to debug an
error I keep getting. I have a couple of SerDes that I have developed, but when I try to query
tables with these SerDes I get a ClassNotFoundException for the SerDe class. I know that the
jar files have been loaded OK, because I can create tables with these SerDes, but when I try
to query the table Hive throws an exception. I know that the SerDe interface that I use is
now deprecated and I have also experimented with extending the AbstractSerDe class in stead,
but I get the same behaviour.
>> Any ideas?
>> Thanks,
>> Andreas
>> FAILED: RuntimeException org.apache.hadoop.hive.ql.metadata.HiveException: Failed
with exception java.lang.ClassNotFoundException: my.serde.ColonSerdejava.lang.RuntimeException:
java.lang.ClassNotFoundException: my.serde.ColonSerde
>>     at org.apache.hadoop.hive.ql.plan.TableDesc.getDeserializerClass(
>>     at org.apache.hadoop.hive.ql.exec.FetchOperator.getRowInspectorFromTable(
>>     at org.apache.hadoop.hive.ql.exec.FetchOperator.getOutputObjectInspector(
>>     at org.apache.hadoop.hive.ql.exec.FetchTask.initialize(
>>     at org.apache.hadoop.hive.ql.Driver.compile(
>>     at org.apache.hadoop.hive.ql.Driver.compile(
>>     at org.apache.hadoop.hive.ql.Driver.compileInternal(
>>     at org.apache.hadoop.hive.ql.Driver.runInternal(
>>     at
>>     at
>>     at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
>>     at org.apache.hadoop.hive.cli.CliDriver.processCmd(
>>     at org.apache.hadoop.hive.cli.CliDriver.processLine(
>>     at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
>>     at
>>     at org.apache.hadoop.hive.cli.CliDriver.main(
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke(
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>     at java.lang.reflect.Method.invoke(
>>     at org.apache.hadoop.util.RunJar.main(
>> Caused by: java.lang.ClassNotFoundException: my.serde.ColonSerde
>>     at$
>>     at$
>>     at Method)
>>     at
>>     at java.lang.ClassLoader.loadClass(
>>     at sun.misc.Launcher$AppClassLoader.loadClass(
>>     at java.lang.ClassLoader.loadClass(
>>     at java.lang.Class.forName0(Native Method)
>>     at java.lang.Class.forName(
>>     at org.apache.hadoop.hive.ql.plan.TableDesc.getDeserializerClass(
>>     ... 20 more

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message