hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kulkarni.swarnim@gmail.com" <kulkarni.swar...@gmail.com>
Subject Using hive with protobuf 2.4.1
Date Fri, 29 Jun 2012 13:51:20 GMT
Using hive with protobuf 2.4.1 throws this exception:

java.lang.RuntimeException: Internal error: Cannot find ObjectInspector
 for UNKNOWN
at
org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorFactory.getPrimitiveJavaObjectInspector(PrimitiveObjectInspectorFactory.java:211)
 at
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getReflectionObjectInspectorNoCache(ObjectInspectorFactory.java:152)
at
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getReflectionObjectInspector(ObjectInspectorFactory.java:74)
 at
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getReflectionObjectInspectorNoCache(ObjectInspectorFactory.java:191)
at
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getReflectionObjectInspector(ObjectInspectorFactory.java:74)
 at
org.apache.hadoop.hive.hbase.TestHBaseSerDe.testSimpleTest(TestHBaseSerDe.java:1513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 Specifically, this seems to happen because since 2.4.1, the "string" types
seem to be compiled differently. It is compiled as a "java.lang.Object"
rather than being a "java.lang.String". Has anyone else encountered this
too? Any workarounds?

Thanks,

-- 
Swarnim

Mime
View raw message