You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jingsong Lee (Jira)" <ji...@apache.org> on 2020/05/19 09:50:00 UTC

[jira] [Commented] (FLINK-16559) Cannot create Hive avro table in test

    [ https://issues.apache.org/jira/browse/FLINK-16559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17111024#comment-17111024 ] 

Jingsong Lee commented on FLINK-16559:
--------------------------------------

It should can be used with HADOOP_CLASSPATH. And we can consider shading also?

> 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
>            Priority: Major
>
> 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)