[
https://issues.apache.org/jira/browse/FLINK-16559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jingsong Lee closed FLINK-16559.
--------------------------------
Assignee: Rui Li
Resolution: Fixed
master: fd9214e7754455ab4733fe52daeb4e0b292e583f
release-1.11: c98122c29ef875d7fbc2b85fc9496bcfa11e0363
> Cannot create Hive avro table in test
> -------------------------------------
>
> Key: FLINK-16559
> URL: https://issues.apache.org/jira/browse/FLINK-16559
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Hive, Tests
> Affects Versions: 1.10.0
> Reporter: Rui Li
> Assignee: Rui Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
>
> Trying to create a Hive avro table will hit the following exception:
> {noformat}
> Caused by: java.lang.NoSuchMethodError:
> org.apache.avro.Schema$Field.<init>(Ljava/lang/String;Lorg/apache/avro/Schema;Ljava/lang/String;Lorg/codehaus/jackson/JsonNode;)V
> at
> org.apache.hadoop.hive.serde2.avro.TypeInfoToSchema.createAvroField(TypeInfoToSchema.java:76)
> at
> org.apache.hadoop.hive.serde2.avro.TypeInfoToSchema.convert(TypeInfoToSchema.java:61)
> at
> org.apache.hadoop.hive.serde2.avro.AvroSerDe.getSchemaFromCols(AvroSerDe.java:170)
> at
> org.apache.hadoop.hive.serde2.avro.AvroSerDe.initialize(AvroSerDe.java:114)
> at
> org.apache.hadoop.hive.serde2.avro.AvroSerDe.initialize(AvroSerDe.java:83)
> at
> org.apache.hadoop.hive.serde2.SerDeUtils.initializeSerDe(SerDeUtils.java:533)
> at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.getDeserializer(MetaStoreUtils.java:449)
> at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.getDeserializer(MetaStoreUtils.java:436)
> at
> org.apache.hadoop.hive.ql.metadata.Table.getDeserializerFromMetaStore(Table.java:281)
> at
> org.apache.hadoop.hive.ql.metadata.Table.getDeserializer(Table.java:263)
> at
> org.apache.hadoop.hive.ql.metadata.Table.getColsInternal(Table.java:641)
> at org.apache.hadoop.hive.ql.metadata.Table.getCols(Table.java:624)
> at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:831)
> ......
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)