Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # user - Using hive with protobuf 2.4.1


Copy link to this message
-
Using hive with protobuf 2.4.1
kulkarni.swarnim@...) 2012-06-29, 13:51
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