I tried to do the following.
hive>
> create table users
> row format serde "com.twitter.elephantbird.hive.serde.ProtobufDeserializer"
> with serdeproperties (
> "serialization.class"=
> "org.apache.hadoop.hive.serde2.proto.test.Complexpb$Complex")
> stored as
> inputformat "com.twitter.elephantbird.mapred.input.DeprecatedRawMultiInputFormat"
> outputformat "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"
> ;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException java.lang.ClassCastException: class org.apache.hadoop.hive.serde2.proto.test.Complexpb$Complex)
I compiled hive/elephant-bird from trunk.
The error code in /tmp/namit/hive.log is as follows:
Caused by: java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException java.lang.\
ClassCastException: class org.apache.hadoop.hive.serde2.proto.test.Complexpb$Complex)
at org.apache.hadoop.hive.ql.metadata.Table.getDeserializerFromMetaStore(Table.java:275)
at org.apache.hadoop.hive.ql.metadata.Table.getDeserializer(Table.java:266)
at org.apache.hadoop.hive.ql.metadata.Table.getCols(Table.java:592)
at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:577)
... 19 more
Caused by: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException java.lang.ClassCastException: class or\
g.apache.hadoop.hive.serde2.proto.test.Complexpb$Complex)
at org.apache.hadoop.hive.metastore.MetaStoreUtils.getDeserializer(MetaStoreUtils.java:226)
at org.apache.hadoop.hive.ql.metadata.Table.getDeserializerFromMetaStore(Table.java:273)
... 22 more
2013-07-10 16:31:24,878 ERROR ql.Driver (SessionState.java:printError(383)) - FAILED: Execution Error, return code 1\
from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hi\
ve.serde2.SerDeException java.lang.ClassCastException: class org.apache.hadoop.hive.serde2.proto.test.Complexpb$Comp\
lex)
I would appreciate any suggestions.
Thanks,
-namit