[ https://issues.apache.org/jira/browse/PARQUET-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528167#comment-17528167 ]
Timothy Miller commented on PARQUET-2104: ----------------------------------------- As I mentioned in https://issues.apache.org/jira/browse/PARQUET-2142, there's a workaround for this. There are duplicate methods in target/parquet-cli-1.13.0-SNAPSHOT-runtime.jar that should be picked up from the dependencies. You can run without hadoop and exclude the runtime by specifying just target/parquet-cli-1.13.0-SNAPSHOT.jar and the deps. > parquet-cli broken in master > ---------------------------- > > Key: PARQUET-2104 > URL: https://issues.apache.org/jira/browse/PARQUET-2104 > Project: Parquet > Issue Type: Bug > Components: parquet-cli > Affects Versions: 1.12.2 > Environment: ubuntu 18.04 and ubuntu 20.04 > Reporter: Balaji K > Priority: Major > > Creating a Jira per this thread: > [https://lists.apache.org/thread/k233838g010lvbp81s99floqjmm7nnvs] > # clone parquet-mr and build the repo locally > # run parquet-cli without Hadoop (according to this ReadMe > <[https://github.com/apache/parquet-mr/tree/master/parquet-cli#running-without-hadoop]> > ) > # try a command that deserializes data such as cat or head > # observe NoSuchMethodError being thrown > *Error stack:* ~/repos/parquet-mr/parquet-cli$ parquet cat > ../../testdata/dictionaryEncodingSample.parquet WARNING: An illegal > reflective access operation has occurred ...<trimmed some more WARNs>... > Exception in thread "main" java.lang.NoSuchMethodError: > 'org.apache.avro.Schema > org.apache.parquet.avro.AvroSchemaConverter.convert(org.apache.parquet.schema.MessageType)' > at org.apache.parquet.cli.util.Schemas.fromParquet(Schemas.java:89) at > org.apache.parquet.cli.BaseCommand.getAvroSchema(BaseCommand.java:405) at > org.apache.parquet.cli.commands.CatCommand.run(CatCommand.java:66) at > org.apache.parquet.cli.Main.run(Main.java:157) at > org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at > org.apache.parquet.cli.Main.main(Main.java:187) -- This message was sent by Atlassian Jira (v8.20.7#820007)