You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by "kulkarni.swarnim@gmail.com" <ku...@gmail.com> on 2012/06/29 15:51:20 UTC
Using hive with protobuf 2.4.1
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