You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Echo Lee (Jira)" <ji...@apache.org> on 2022/01/18 06:09:00 UTC

[jira] [Commented] (HUDI-3261) Query rt table by hive cli throw NoSuchMethodError

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

Echo Lee commented on HUDI-3261:
--------------------------------

cc [~danny0405]

Can you assign this ticket to me?

> Query rt table by hive cli throw NoSuchMethodError
> --------------------------------------------------
>
>                 Key: HUDI-3261
>                 URL: https://issues.apache.org/jira/browse/HUDI-3261
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: hive
>            Reporter: Echo Lee
>            Priority: Major
>              Labels: pull-request-available, sev:normal
>
> When querying the MOR table synchronized from hudi to hive, the following exception is thrown:
>  
>  
> {code:java}
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.parquet.avro.AvroSchemaConverter.convert(Lorg/apache/parquet/schema/MessageType;)Lorg/apache/hudi/org/apache/avro/Schema;
>         at org.apache.hudi.common.util.ParquetUtils.readAvroSchema(ParquetUtils.java:217)
>         at org.apache.hudi.io.storage.HoodieParquetReader.getSchema(HoodieParquetReader.java:71)
>         at org.apache.hudi.hadoop.utils.HoodieRealtimeRecordReaderUtils.readSchema(HoodieRealtimeRecordReaderUtils.java:72)
>         at org.apache.hudi.hadoop.InputSplitUtils.getBaseFileSchema(InputSplitUtils.java:70)
>         at org.apache.hudi.hadoop.realtime.AbstractRealtimeRecordReader.init(AbstractRealtimeRecordReader.java:87)
>         at org.apache.hudi.hadoop.realtime.AbstractRealtimeRecordReader.<init>(AbstractRealtimeRecordReader.java:67)
>         at org.apache.hudi.hadoop.realtime.RealtimeCompactedRecordReader.<init>(RealtimeCompactedRecordReader.java:62)
>         at org.apache.hudi.hadoop.realtime.HoodieRealtimeRecordReader.constructRecordReader(HoodieRealtimeRecordReader.java:70)
>         at org.apache.hudi.hadoop.realtime.HoodieRealtimeRecordReader.<init>(HoodieRealtimeRecordReader.java:47)
>         at org.apache.hudi.hadoop.realtime.HoodieParquetRealtimeInputFormat.getRecordReader(HoodieParquetRealtimeInputFormat.java:317)
>         at org.apache.hadoop.hive.ql.exec.FetchOperator$FetchInputFormatSplit.getRecordReader(FetchOperator.java:695)
>         at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:333)
>         at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:459)
>         at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:428)
>         at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:146)
>         at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:2227)
>         at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
>         at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:187)
>         at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:409)
>         at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:836)
>         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:772)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:699)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.apache.hadoop.util.RunJar.run(RunJar.java:313)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:227){code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)