Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType

Highlighted
Four Stars

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType

Hi,

 

I have a simple job of extracting data from hive to mysql, and after insert into mysql, logs will be inserted to a table. logs can be saved either in postgresql/mysql/sqllite so I have used JDBC component. but i have the error below.

 

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType()Lorg/apache/avro/LogicalType;
at org.talend.daikon.avro.LogicalTypeUtils.isLogicalDate(LogicalTypeUtils.java:74)
at org.talend.codegen.enforcer.IncomingSchemaEnforcer.put(IncomingSchemaEnforcer.java:444)
at org.talend.codegen.enforcer.IncomingSchemaEnforcer.put(IncomingSchemaEnforcer.java:379)
at edo_devops.sample_test_jdbc_0_1.sample_test_jdbc.tFixedFlowInput_1Process(sample_test_jdbc.java:3078)
at edo_devops.sample_test_jdbc_0_1.sample_test_jdbc.tHiveInput_2Process(sample_test_jdbc.java:2026)
at edo_devops.sample_test_jdbc_0_1.sample_test_jdbc.runJobInTOS(sample_test_jdbc.java:3591)
at edo_devops.sample_test_jdbc_0_1.sample_test_jdbc.main(sample_test_jdbc.java:3410)

 

In another thread I have seen it says that jar files were corrupted, replacing the jar file did not fixed the issue. Please help.

 

Moderator

Re: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.getLogicalType

Hello,

Could you please clarify in which Talend version/edition you are?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog